Hi There,
We have a Sonarqube 6.2 running with the LDAP plugin 2.2.0.608. In the web.log I see an message like:
2017.07.25 19:03:28 INFO web[][o.s.p.l.LdapSettingsManager] User mapping: LdapUserMapping{baseDn=OU=Users,OU=User Accounts,DC=xxxx,DC=xxxxx, request=(&(objectClass=user)(sAMAccountName={0})), realNameAttribute=cn, emailAttribute=mail}
2017.07.25 19:03:28 INFO web[][o.s.p.l.LdapSettingsManager] Groups will not be synchronized, because property 'ldap.group.baseDn' is empty.
2017.07.25 19:03:28 INFO web[][o.s.p.l.LdapContextFactory] Test LDAP connection on ldap://ldap.xxxx.xxxx: OK
And also when I set a wrong password for the ldap.bindPassword parameter Sonarqube will not start anymore.
I conclude that my LDAP properties are correct.
But my question is how does sonarqube know which user to authenticate with the our AD via the LDAP plugin and which users to th elocal database?
When I try to login with an user from LDAP, which doesn't exist in sonaqube I get an 'Authentication failed'.
Also when authentication succeed ho to give them the proper permissions...?
For some reason I have 2 users that can login via LDAP, but I have no idea how they got in there.
I found the users table in the database, but normally you should not be messing around here.
Could someone help me a bit?
Thanks