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.