Hi,
I'm working on websphere 5 and configured a ldap server on WAS 5.
Now I want to validate a login aperson through a jsp page by validating it through ldap.
How do I do that .Do I have to configure some user registry where in I can sepcify the location where a person is redirected after validating through ldap.
Any example wld be of grt help.
Thanx
Anil
-
ldap authentication in WAS 5 (1 messages)
- Posted by: Anil Dhiman
- Posted on: August 25 2003 00:34 EDT
Threaded Messages (1)
- ldap authentication in WAS 5 by Kapil Israni on August 26 2003 10:38 EDT
-
ldap authentication in WAS 5[ Go to top ]
- Posted by: Kapil Israni
- Posted on: August 26 2003 10:38 EDT
- in response to Anil Dhiman
Well basically there r 2 things here. You hooked up your WebSphere security to a LDAP server. so now u can use J2EE security(roles etc) when you are packaging your application.
So lets say you have a EJB which has debitAccount method, usning J2EE security you can define wat all users are authorised to access this method. similarly u can definne security constraints for access to web resources(servlet, jsp) as well. all this without writing any code, just by way of deployment descriptor.
now what i understand is you may wanna write custom authentication code in your login.jsp. one sure way to to that is use JNDI to access the LDAP database. you can always facade the JNDI code in some authentication helper class.
you may also wanna check out JAAS. dont kno much bout it. but i read sometime back it supports Java Naming and Directory Interface (JNDI).