Dear,
For SonarQube 6.2 Authentication, I have setup Apache 2.4 as reverse proxy with SSL and SSO (SSPI). http
s://sonarApacheProxy -> passing http header REMOTE_USER (as x-forwarded-name) ->
http://localhost:9000 (=sonarqube)
When authenticating on SQ server via
http://localhost:9000, SQ properly queries ldaps and updates the fullname and groups.
When authenticating through the Apache reverse proxy, I can see my username, I'm connected to sonar, but no fullname & groups.
Sonar requires fullname, mail address & group memberships to come from the reverse proxy, but I can find no full documentation on this setup. Old SQ had a property sonar.security.updateUserAttributes=true that is no longer supported.
https://docs.sonarqube.org/display/SONAR/Authentication
Sonar.properties
sonar.security.realm=LDAP
ldap.url=ldaps://server:636
ldap.bindDn=account
ldap.bindPassword=***
sonar.forceAuthentication=true
# User Configuration
ldap.user.baseDn=working OU/DC
ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
ldap.user.realNameAttribute=cn
ldap.user.emailAttribute=mail
# Group Configuration
ldap.group.baseDn=working OU/DC
ldap.group.request=(&(objectClass=group)(member={dn}))
httpd.conf (apache reverse proxy)
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
RequestHeader set X-Forwarded-Login expr=%{REMOTE_USER}
2017.05.23 11:40:01 DEBUG web[...][o.s.s.u.NewUserNotifier] User created: myUserAccount. Notifying NewUserHandler handlers...
-> no new line calling identity provider to collect groups
2017.05.23 11:42:47 DEBUG web[...][o.s.s.u.NewUserNotifier] User created: myUserAccount. Notifying NewUserHandler handlers...
2017.05.23 11:42:47 DEBUG web[...][o.s.s.a.UserIdentityAuthenticator] List of groups returned by the identity provider '[Group1, Group2]'
Should this be reported as SQ6.2 bug or can someone provide a docset on how to get these user attributes in Apache?
Goal is to have SSL connection with single sign-on to SonarQube.
Thanks!