Yes you are right,
First I want to say that it's the way Spring LDAP security manage
authentication, so if you want to change this behavior you will need to
modify Spring security code.
For your information
"org.springframework.security.ldap.search.FilterBasedLdapUserSearch#searchForUser"
is calling searchForSingleEntry which returns the Exception you are getting.
You can get the source code of spring-security and try to change this
behavior, but I really suggest you give a try to Artifactory Pro.
With Artifactory Pro version you can defined multiple LDAP settings where
each of them define a clean sub domain. In each subdomain all users are
defined only once, and this way you will manage to work correctly.
By the way with Artifactory Pro you will have LDAP Groups that simplifies a
lot settings permissions for all your LDAP users.

Hope this help,
Fred.

On Fri, Dec 17, 2010 at 9:52 PM, fmonserrat <[email protected]>wrote:

>
> Hi All,
> I'm using Artifactory 2.3 with LDAPS authentication and it works perfect,
> the only problem I'm facing is that we have a really long tree structure in
> the domain, and a user may exist in more than one tree and it will return
> an
> error [pool-1-thread-32] [ERROR] (o.a.s.l.ArtifactoryBindAuthenticator:126)
> - User: username found 2 times in LDAP server
>  I'm using : sAMAccountName={0} and as i said works correctly for a user
> who
> is only in one domain
> thanks
>
> --
> View this message in context:
> http://forums.jfrog.org/ANN-Artifactory-1-3-0-beta-3-tp4944792p5845726.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>



-- 
Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to