I have installed SonarQube version 6.7.4 and installed LDPA plugin version 2.2 build 608
My config section is:
# LDAP configuration
# General Configuration
sonar.security.realm=LDAP
ldap.url=ldap://<LDAP Server>:389
ldap.bindDn=SonarQubeSvc
ldap.bindPassword=<Password>
ldap.authentication=GSSAPI
# User Configuration
ldap.user.baseDn=OU=Users,DC=MyDomain,DC=com
ldap.user.request=(&(objectClass=user)(sAMAccountName={login})(|(memberOf=CN=SQUsers,OU=Groups,DC=MyDomain,DC=com)(memberOf=CN=SQAdmins,OU=Groups,DC=MyDomain,DC=com)))
ldap.user.realNameAttribute=displayName
ldap.user.emailAttribute=mail
# Group Configuration
ldap.group.baseDn=OU=Groups,DC=MyDomain,DC=com
ldap.group.request=(&(objectClass=group)(|(cn=SQAdmins)(cn=SQUsers))(member={dn}))
ldap.group.idAttribute=sAMAccountName
requests have been validated in an ldap tool
This is the only configuration I can use to have the server start up. The logs state o.s.p.l.LdapContextFactory] Test LDAP connection on ldap://<LDAP Server>:389: OK
When I try to log in as a user, I get the following error:
2018.06.19 18:14:28 DEBUG web[AWQaE26TCu7ay22OAAAu][o.s.p.l.LdapUsersProvider] [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C09075A, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1 ]
javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C09075A, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1 ]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
...
DEBUG web[AWQaE26TCu7ay22OAAAu][o.s.p.l.LdapUsersProvider] User vxn9 not found in <default>
ERROR web[AWQaE26TCu7ay22OAAAu][o.s.s.a.RealmAuthenticator] Error during authentication
org.sonar.plugins.ldap.LdapException: Unable to retrieve details for user vxn9 in <default>
...
Caused by: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C09075A, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1 ]
...
DEBUG web[AWQaE26TCu7ay22OAAAu][auth.event] login failure [cause|Unable to retrieve details for user vxn9 in <default>][method|FORM][provider|REALM|LDAP][IP|<ip address>|][login|vxn9]
Why does the bind successfully complete when I start the application then fail on a user authentication?