Trouble shooting LDAP Configuration
Folks,
How do folks go about trouble shooting AuthC issues? I've used the JExplorer LDAP browser to ensure that my URL is correct and I know that the same URL works in Apache. Is there a particular log4j appender class that I ought to configure to get a glimpse of what the problem might be.
I've included some debug input as well as the relevant config elements. Apparently, my LDAP mojo is weak. :(
main-config.xml
-
<auth-type>
<login-module />
<login-description>Hey.</login-description>
<guest-login allowed="true" />
</auth-type>
ldap-config.properties
-
java.naming.referral=follow
java.naming.provider.url=ldap://ldap.xxx.com:389/ou=active,ou=employees,ou=people,o=xxx.com?uid
java.naming.security.authentication=simple
loginFilter=.+
TRACE
-
TeamCity 3.1.2 (build 6881) initialized, OS: Linux, JRE: 1.5.0_10-b03
INFO - jetbrains.buildServer.SERVER - TeamCity is running in enterprise mode
....
ERROR - Side.impl.auth.LDAPLoginModule -
javax.naming.AuthenticationException:
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:272)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2637)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.]]>(InitialDirContext.java:82)
at jetbrains.buildServer.serverSide.impl.auth.LDAPLoginModule.login(
Please sign in to leave a comment.
Hmm.. Why do you added "?uid" suffix to ldap-config.properties/java.naming.provider.url ? Can you try w/o it?...