i want to know how to automate users authentication from ldap data store rather than from the server realm?i know how to use ldap(openldap) and ofcourse the JNDI API but is there any mapping tool in the sun application server to the ldap DIT initial context and the searching controls , filters and son on to ease this process?
I think is no you need to create login page through this login. You can use the JNDI API in your pages if the user right will work well rather than you need catch the exception.
Best Regards,
Moayad Abu Jaber
SCJP 5.0, SCWCD 1.4, SCBCD 5.0
I am not sure what you mean by "automating user authentication" and mapping tool. However, if you want to do ldap authentication from java, then this tutorial trail will be a good point to start.
Using JNDI to connect to LDAP is in itself an easy process and I am not sure what further tools you are looking for.
By the way this post will probably belong to the Security forum. [ May 12, 2008: Message edited by: Nitesh Kant ]
I am not sure what you mean by "automating user authentication" and mapping tool.
ok..i mean when you want to deploy a web application that use a FORM login page you have to supply the action=j_security_check and both properties names for the username and password must be j_username and j_password..my point is that this type of authentication uses the file Realm of the web container which means i have to edit the editor and add users in this file(tomcat-users.xml is an example)..so this nonsense if i have a website that accept members..i can store users info using JNDI with LDAP but..how to map the authentication to the LDAP entries...how i can say that j_username in the FORM authentication page will be mapped to "cn" attribute in ldap?and also how to map j_passwaord to ldap attribute "userPassword"?