cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhinandan Prateek <cloudst...@aprateek.com>
Subject Re: LDAP auth broken?
Date Tue, 28 May 2013 04:46:32 GMT
Check if the query filter is going to get the valid identifier for the
particular user. If that looks fine then can you tell us what LDAP server
you are using and also specifiy the query filter that you have configured.

-abhi

On 27/05/13 10:25 PM, "Francois Gaudreault" <fgaudreault@cloudops.com>
wrote:

>Hi,
>
>I am using 4.1 commit "8a9206fd28872dd436b22b847e93466f06e043bc", and I
>am getting this error when trying to authenticate using LDAP:
>
>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.jav
>a:254)
>     at 
>com.sun.jndi.ldap.LdapNamingEnumeration.next(LdapNamingEnumeration.java:20
>2)
>     at 
>com.cloud.server.auth.LDAPUserAuthenticator.authenticate(LDAPUserAuthentic
>ator.java:115)
>     at 
>com.cloud.user.AccountManagerImpl.getUserAccount(AccountManagerImpl.java:1
>912)
>     at 
>com.cloud.user.AccountManagerImpl.authenticateUser(AccountManagerImpl.java
>:1784)
>     at com.cloud.api.ApiServer.loginUser(ApiServer.java:766)
>     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:210)
>     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>     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(Applicati
>onFilterChain.java:290)
>     at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>Chain.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:1
>27)
>     at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
>02)
>     at 
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>     at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
>va:109)
>     at 
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298
>)
>     at 
>org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.jav
>a:889)
>     at 
>org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process
>(Http11NioProtocol.java:721)
>     at 
>org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.jav
>a:2274)
>     at 
>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
>1146)
>     at 
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>:615)
>     at java.lang.Thread.run(Thread.java:679)
>WARN  [server.auth.LDAPUserAuthenticator] (catalina-exec-21:) Unknown
>error encountered null
>
>Any ideas?
>
>I tested using ldapsearch and it works fine.
>
>-- 
>Francois Gaudreault
>Architecte de Solution Cloud | Cloud Solutions Architect
>fgaudreault@cloudops.com
>514-629-6775
>- - -
>CloudOps
>420 rue Guy
>Montréal QC  H3J 1S6
>www.cloudops.com
>@CloudOps_
>



Mime
View raw message