06-15-2005 05:15 AM - edited 03-10-2019 02:11 PM
Hello,
For a specific scenario I need to authenticate an user without using the built in SESM controls.
I am trying to use the provided API and I get the following error:
No account for the identities "{radiususer=cisco}" exists.
The code running within the JSP:
Map LoginInfo = new HashMap();
LoginInfo.put("radiususer","cisco");
sesmSession.authenticate(LoginInfo);
Would anyone have any clues on why doesn't this work? The user password combination works fine if using the non-customized pages. Thanks
06-21-2005 08:35 AM
You could check the document for more information on SESM : http://www.cisco.com/en/US/products/hw/routers/ps314/prod_bulletin09186a0080091f31.html
06-22-2005 11:29 PM
Hi, responding to my own question. I would advice to use the Web Services Gateway (WSG) which exposes a Web Services interface (SOAP/HTTP) that emulates the commands between SESM and SSG.
This is what I did, I hope that it helps someone else:
- Create a new com.cisco.sesm.wsg.common.Identity object named id. The Identity class is a simple bean generated from the WSDL file.
- Set the type of id to com.cisco.sesm.types.IdentityType.USER. WSG authenticates subscribers only by user id.
- Use the Identity bean setter method - setType
- Set id's principal with the value of the username variable. Use the Identity bean setter method setPrincipal.
Then create a Credential array with the id bean and the password of the subscriber
Finally, you can use the authenticate(java.lang.String hostkey, Credential[] credentials) method
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide