Yes, thanks for responding… And
you are right, when I narrow my search up, I was successful… That are other
things that confused me when I saw that error (but that's a different story); I
think I understand what's going on now.
Thanks
From: Winston Prakash
[mailto:winston.prakash@xxxxxxxxx]
Sent: Monday, April 02, 2012 4:31 PM
To: Hudson developer discussions
Cc: Ley, Chung
Subject: Re: [hudson-dev] Newbie question with LDAP
I'm not sure what exactly is the issue, but a google search
shows, this exception is thrown if more than one row is returned for a search
when only one is expected. Is it possible in your case? Can a search of a user
can be returned multiple times in your LDAP setup?
- Winston
On 4/2/12 10:30 AM, Ley, Chung wrote:
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
_______________________________________________
hudson-dev mailing list
hudson-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/hudson-dev