I cannot authenticate when the user passes sAMAccountName and password .
If I do the following:
env.put(Context.SECURITY_PRINCIPAL, "CN="+username+",OU=Service Accounts,OU=TECH,DC=wawalab2,DC=ins"); env.put(Context.SECURITY_CREDENTIALS, password);
it throws an exception:
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece
Note: I can use Spring LDAP framework too.
source share