File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat and Active Directory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Tomcat and Active Directory" Watch "Tomcat and Active Directory" New topic
Author

Tomcat and Active Directory

Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 135
I hope to get Tomcat to use Active Directory. I am using tomcat 5.5.9. I have a simple application that uses form authentication. I have the login.jsp with form submitting to j_secuity_check. I tested this using the tomcat-user.xml. And now I want to add in Active Directory. I have tried adding in this realm to the server.xml


Is this look correct? I am getting this exception:

javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr:
DSID-0C09030B, comment: AcceptSecurityContext error, data 525, v893 ]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2988)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)

Does anyone have a working entry I could see or any guidance? In the documentation it says I need a jar, I wouldn't think Microsoft would make a jar for us Java people

Thanks,
Tom
Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 135
I chnaged the server.xml to this and it started without error. I presume I need to comment out this first part to add the new realm?

When I tried to authenticate though I was still going against the tomcat users file I have. Is there another piece in the server.xml that needs to be commented out?
Thanks,
Tom
Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 135
Has anyone used tomcat with any other LDAP provider? What entries did you put in the server.xml?

Thanks,
Tom
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Tomcat and Active Directory
 
Similar Threads
Need help to read JNDIRealm inforamtion from my application.xml file in Tomcat
Active Directory Authentication
how to redirect to success page in tomcat using its lapd configuration
WLS6.1 - Configuring realm for openLdap
ldap authentication. JNDIRealm