DN error while being sure about the DN

We recently started with Scrum at our company and we wanted to start using Kunagi to test and see how it works.

So I installed the kunagi_0.23.2.deb package that I downloaded from their website, on my Ubuntu 11.04 running in tomcat6 using openjdk-6-jre.

Everything works fine except I can't get the LDAP to work. For the LDAP I use the following info:

    uri: ldap://192.168.1.31:389
    user: some_tested_user
    passwd: the_pass
    DN: dc=colosa,dc=net
    LDAP Filter: (&(objectClass=user))

I tested various LDAP Filters, I don't know if I have the right one. However I get an error when clicking "test LDAP". The error refers to the DN:

Server service call error
Calling service TestLdap failed.
java.lang.RuntimeException: InvalidNameException: error code 34 - invalid DN

I installed an other Web Applications on the same server (PHP, not Java) that uses LDAP and it works fine with the info above (except the Filter is set to *, which I also tried in Kunagi).

And just to be complete in my report, I retyped all the information I entered in Kunagi manually, to be sure there where no hidden chars.

my catalina.log says the following

INFO Ldap                 LDAP authentication for  dummyUser on ldap://192.168.1.31:389                                       | app:kunagi > session:admin > gwt-srv:TestLdap
INFO AGwtServiceImpl      Service method failed: TestLdap -> 
java.lang.RuntimeException: javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN]
    at ilarkesto.integration.ldap.Ldap.createDirContext(Ldap.java:93)
    at ilarkesto.integration.ldap.Ldap.authenticateUserGetEmail(Ldap.java:47)
    at scrum.server.ScrumServiceImpl.onTestLdap(ScrumServiceImpl.java:866)
    at scrum.server.GScrumServiceImpl.testLdap(GScrumServiceImpl.java:207)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:679)
Caused by: javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN]
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2973)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2780)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2694)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:306)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211)
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
    at javax.naming.InitialContext.init(InitialContext.java:240)
    at javax.naming.InitialContext.<init>(InitialContext.java:214)
    at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:99)
    at ilarkesto.integration.ldap.Ldap.createDirContext(Ldap.java:89)
    at ilarkesto.integration.ldap.Ldap.authenticateUserGetEmail(Ldap.java:47)
    at scrum.server.ScrumServiceImpl.onTestLdap(ScrumServiceImpl.java:866)
    at scrum.server.GScrumServiceImpl.testLdap(GScrumServiceImpl.java:207)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:679)
 | app:kunagi > session:admin > gwt-srv:TestLdap
INFO ADao                 Entity modified: SystemConfig: SystemConfig -> ldapBaseDn=dc=colosa,dc=net                          | app:kunagi > session:admin > gwt-srv:ChangeProperties
INFO Transaction          Committing transaction: #515 (app:kunagi > session:admin > gwt-srv:ChangeProperties)                | app:kunagi > session:admin > gwt-srv:ChangeProperties
INFO AWebApplication      Destroying invalid/timeouted GwtConversation: #6@session:admin                                      | app:kunagi > task:DestroyTimeoutedSessionsTask

Status

Issue is closed.

Comments

Thu, Jul 5, 2012, 15:37 by Witek (SM,T)

Sorry, but we have no LDAP experts on our team. But it seams the error message LDAP: error code 34 - invalid DN comes from your LDAP server.

Thu, Jul 5, 2012, 17:12 by anonymous

I am very sorry to have bothered you, even though this DN works in other applications it seems to be Case sensitive in yours. The correct DN was "DC=colosa,DC=net". We still get errors if we run the test inside Kunagi, but we can logon using our LDAP credentials.

Thank you for your reply.

Post a comment



optional
optional