Posted: 22 Jan 2016 10:48 EST Last activity: 4 Oct 2018 13:54 EDT
Authentication failed: User not found in directory
I have an Authentication Service for external users from an LDAP directory and when I test the JNDI Binding parameters the connectivity shows as Good but when users try to access they get "Authentication failed: User not found in directory"
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
The error message is coming from step 2 of the Code-SecurityAuthenticateLDAPVerifyCredentials activity when the search for the user returned no results. You're connecting fine to the server so I would check your "Directory Context" and "Search Filter" attributes settings in the AuthService to make sure the search for the user is correct. We can't tell you what these values should be, your LDAP server administrator would.
For example if you had a Directory Context setting of "ou=people, dc=yourco, dc=com" this is saying search the yourco.com directory for users. If the user is not part of the yourco.com domain then they would not be defined in the LDAP directory tree for youco.com and the result would be "Authentication failed: User not found in directory"