I'm trying to configure an LDAP user directory. When doing the "Test Remote Directory Connection", I'm getting
Test retrieve user : Failed
User <my_user> does not exist
The thing is that my_user is the user used to access the LDAP server. So I don't understand why it doesn't exist... An ldapsearch will return it correctly
My setup:
I also tried with
But it also fails.
So, I have two questions:
Amazing how asking a question makes the answer appear.
So, I've turn on logs for atlassian.crowd.directory.SpringLDAPConnector.
Which makes the filter appear in the logs.
The problem comes from the User Schema Settings in the User Object Filter. By default it contains (&(objectCategory=Person)(sAMAccountName=*)). Which is completely wrong in my case. On top of that, this is concatenated to the User Name Attribute which is sAMAccountName.
It's strange that such important fields are hidden by default.
I've replace all this wrongness by filter = (uid=*) and user name attribute = uid.
Now the filter looks a bit redundant in the log since the filter field is mandatory. It get (& (uid=*) (uid=myuser)).
So, to be cuter, I've changed it to filter = (objectCategory=Person). Not really needed in my case but not harmful either.
Now everything works fine.
Test basic connection : Succeeded
Test retrieve user : Succeeded
Test user rename is configured and tracked : Succeeded
Test get user's memberships : Failed
Test retrieve group : Not performed
Test get group members : Not performed
Test user can authenticate : Succeeded
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See here what i experienced: https://community.atlassian.com/t5/JIRA-Core-questions/Test-retrieve-user-Failed/qaq-p/628477#M31074
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I experience the same problems as above, i tried Henris solution to change the User Schema Setting User Object Filter to (uid=*) and User name Attribute to uid, but i get the same problem.
How do i turn on the logs for the LDAP connector.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Test basic connection : Succeeded
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is that user under perosons OU in LDAP?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amazing how asking a question makes the answer appear.
So, I've turn on logs for atlassian.crowd.directory.SpringLDAPConnector.
Which makes the filter appear in the logs.
The problem comes from the User Schema Settings in the User Object Filter. By default it contains (&(objectCategory=Person)(sAMAccountName=*)). Which is completely wrong in my case. On top of that, this is concatenated to the User Name Attribute which is sAMAccountName.
It's strange that such important fields are hidden by default.
I've replace all this wrongness by filter = (uid=*) and user name attribute = uid.
Now the filter looks a bit redundant in the log since the filter field is mandatory. It get (& (uid=*) (uid=myuser)).
So, to be cuter, I've changed it to filter = (objectCategory=Person). Not really needed in my case but not harmful either.
Now everything works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.