Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hudson-dev] Newbie question with LDAP

Hi,

 

I am trying to setup Hudson to use LDAP for authentication.  I was told that our LDAP server accept anonymous bind.  I turned on the "Enable security" check box, and type in my ldap server box:

 

Server: <server>:389

root DN: DC=gfoundries,DC=com

 

I then restarted the server and tried to log on….  But when I typed in my id/password, I got "Invalid login Information"; and if I looked at the log file, I have something like this:

INFO  [hudson.security.AuthenticationProcessingFilter2] (http-10.250.58.100-8080-3) Login attempt failed

org.acegisecurity.AuthenticationServiceException: Incorrect result size: expected 1, actual 2; nested exception is org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect result size: expected 1, actual 2

        at org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:238)

        at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119)

        at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)

        at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)

        at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)

        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

        at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)

        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)

        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)

        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java

 

Can anyone tell me what my problem is?

 

Thanks…

 

--Chung

 


Back to the top