I am new to this forum, this is my first topic, so if i forget something, please let me know.
I’m using SonarQube 8.4 Community Edition.
I’m trying to connect our Active Directory via LDAP connection. I am doing this using the sonar.properties file.
I want users of one of our AD Group to log in.
As I understand, the LDAP configuration is divided into three parts.
- First, I connect via the “general” configuration part of the .properties file:
This works !
- I set the user mapping
This seems to work ! (I get no exception on startup)
- I set the group mapping
Here, I also don’t get an exception on startup.
What I also did was adding Sonar User Groups with the same name as the Groups in our AD. As far as I understand, this is necessary, so when a user is logging in for the first time, this user will be assign to the particalur group he/she is part of in the AD.
The group I want them to be added to is part of the CN of the ldap.group.baseDn
But now, when I want to log in with a user, my authentication fails.
The logging says:
web[AXSMy5JI33FsbUosAAAU][auth.event] login failure [cause|Unable to retrieve groups for user *** in ][method|FORM]
This seems to be caused by
javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-031007E5, problem 5012 (DIR_ERROR), data 0
When I google this behaviour, I dont really get any usefull results. As far as I understand, I could be caused by a wrong ldap.group.baseDn, but that is more of a guess. When I add my Group as CN Prefix in the ldap.group.baseDn, the server doesn’t even startup.
I hope, I could describe my problem properly and hope that someone can help me with this.