This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes LDAP authentication with sun app server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "LDAP authentication with sun app server" Watch "LDAP authentication with sun app server" New topic
Author

LDAP authentication with sun app server

hisham ragheb
Ranch Hand

Joined: Apr 14, 2008
Posts: 30
when you want to deploy a web application that use a FORM login page you have to supply the form tag with "action=j_security_check" and both properties names for the username and password must be "name=j_username" and "name=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 realm file with an editor and add users in it(tomcat-users.xml is an example or using the deployment tool of the server)..so this nonsense if i have a website that register members..i can store users info using JNDI with LDAP but..how to map the authentication process to the LDAP entrie attributes?...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"?

[ May 12, 2008: Message edited by: hisham ragheb ]

[ May 12, 2008: Message edited by: hisham ragheb ]

[ May 12, 2008: Message edited by: hisham ragheb ]
[ May 12, 2008: Message edited by: hisham ragheb ]

SCJP 1.5 (94%), SCWCD 1.4 (91%), SCBCD 1.5 (95%)
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Please do not post the same question multiple times. It causes confusion and duplication of effort as the community tries to help everyone.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: LDAP authentication with sun app server
 
Similar Threads
How to get user credentials from LDAP using Apache Tomacet JNDIRealm
Container Managed Security on Tomcat - configuring different auth-methods
how to redirect to success page in tomcat using its lapd configuration
Authentication with LDAP
Authentication with LDAP