Wrong user authenticated

24 views
Skip to first unread message

uday...@gmail.com

unread,
Nov 23, 2018, 2:00:03 PM11/23/18
to ldaptive
Hello team,

We have Microsoft AD and using SearchDNResolve to authenticate the users. But, when authenticate, Ldaptive throws Exception as 

SEVERE: Found more than (1) DN for: user01
[org.ldaptive.LdapException@1578646249::resultCode=null, matchedDn=null, responseControls=null, referralURLs=null, messageId=-1, message=Found more than (1) DN for: user01, providerException=null]
        at org
.ldaptive.auth.AbstractSearchDnResolver.resolve(AbstractSearchDnResolver.java:243)
        at org
.ldaptive.auth.Authenticator.resolveDn(Authenticator.java:182)
        at org
.ldaptive.auth.Authenticator.authenticate(Authenticator.java:198)
        at com
.managecat.ldap.service.LdaptiveService.authenticateViaService(LdaptiveService.java:84)

After this error, we set dnResolver.setAllowMultipleDns(true); but now the wrong user is authenticated.

How could we fix this problem? What is wrong in here?
Regards
Uday.

Daniel Fisher

unread,
Nov 24, 2018, 10:43:05 AM11/24/18
to ldap...@googlegroups.com
You must configure a filter that resolves a single entry. The filter you are using is returning multiple entries

--Daniel Fisher

--
You received this message because you are subscribed to the Google Groups "ldaptive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ldaptive+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages