Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ldap and Tomcat 5.5.16

Status
Not open for further replies.

dreamsmk

Programmer
Oct 17, 2006
1
IE
I am connecting to LDAP using Tomcat 5.5.12 and everything is fine. However, when I change over to Tomcat 5.5.16, I can no longer connect to LDAP because of a binding error.

The error I see is -

javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C0905FF, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece remaining name 'qtest\fmccarthy'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3025)




The cause of my problem is due to a change made to the JNDIRealm class, the getUserByPattern(). The change made ( I don’t think) has not been documented in the change log html. Two lines of code have been removed from the above class and method.

This the Realm that works with Tomcat 5.5.12, but doesn't work with Tomcat 5.5.16
<Realm className="org.apache.catalina.realm.JNDIRealm"
connectionURL="ldap://1.0.0.0:389"
userPattern="({0})"
resourceName="UserDatabase" referrals="follow" />


Any help would be really appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top