Error on login with LDAP

On login action, I have get this error:

ERROR LoginServlet         LDAP authentication failed. 
java.lang.NullPointerException
    at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:129)
    at com.sun.jndi.ldap.LdapNamingEnumeration.nextAux(LdapNamingEnumeration.java:263)
    at com.sun.jndi.ldap.LdapNamingEnumeration.nextImpl(LdapNamingEnumeration.java:254)
    at com.sun.jndi.ldap.LdapNamingEnumeration.next(LdapNamingEnumeration.java:202)
    at com.sun.jndi.ldap.LdapNamingEnumeration.nextElement(LdapNamingEnumeration.java:106)
    at ilarkesto.integration.ldap.Ldap.authenticateUserGetEmail(Ldap.java:57)
    at scrum.server.admin.LoginServlet.login(LoginServlet.java:329)
    at scrum.server.admin.LoginServlet.onRequest(LoginServlet.java:85)
    at scrum.server.common.AHttpServlet.doPost(AHttpServlet.java:85)
    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:127.0.0.1

Status

Bug is accepted as 'normal' and the Team needs to fix it.

Comments

Mon, Dec 10, 2012, 10:57 by anonymous

When the users can get the correction?

Mon, Dec 10, 2012, 12:16 by Witek (SM,T)

Sorry, but the LDAP module was submitted by an external developer and we have no LDAP experts on the team. Since we have no other issues with LDAP, it is probably a problem with your configuration. Did you leave any fields empty? Can you please post your configuration data here?

Mon, Dec 10, 2012, 13:20 by anonymous

Hello witek,

The computer configuration is ok and it working properly.

Here is the configuration settings from kunagi configuration page:
OpenID disable: yes
Allowed OpenID Domains: -
LDAP authentication enabled: yes
LDAP URL: ldap://mycompany:389
LDAP user: metheuser
LDAP password: *****
LDAP base DN: o=mycompany
LDAP user filter RegEx: (&(objectClass=user))

Regards,
-Mannake-

Fri, Apr 19, 2013, 16:52 by Ricardo Mota

I have the same problem

Wed, Apr 24, 2013, 10:28 by Witek (SM,T)

The LDAP integration seams to work for some people and not for others.

We are sorry about that, but we have no experts for LDAP on our team. Perhaps someone could analyse the code and give us a hint?

github.com/../ilarkesto/integration/ldap/Ldap.java

Wed, Jul 1, 2015, 16:41 by Witek (SM,T)

Sorry, still no solution for this problem. Based on similar issues on other projects this error could be caused by setting an illegal RegEx in the Kunagi-LDAP configuration.

Some hints:

Post a comment



optional
optional