oli1
(oli1)
July 10, 2020, 12:43pm
1
hi folks
I would want to know how i can overwite the LDAP params in sonarqube ?
I try to load my ldap.conf when i run docker run However when i go on the URL to try to connect
i get
authentication failed
i didn’t find any information about how to do it until now
thanks for your help
scm_invn
(SCM INVN Team)
July 10, 2020, 1:12pm
2
Hi there
not sure which version you are running, we run 8.2
We configure LDAP using Docker environment variables into a docker-compose file:
sonarqube:
environment:
SONAR_SECURITY_REALM: LDAP
ldap.url: ${SONARQUBE_LDAP_URL}
ldap.bindDn: ${SONARQUBE_LDAP_LOGIN}
ldap.bindPassword: ${SECRET_SONARQUBE_LDAP_PASSWORD}
ldap.user.baseDn: DC=net,DC=dot,DC=com
ldap.user.request: (&(objectClass=person)(sAMAccountName={login}))
You can replace variables by actual value. Only drawback of this approach is the proper management of sensitive .bindPassword option…
1 Like
oli1
(oli1)
July 10, 2020, 1:31pm
3
and if i want to write all the variable in Dockerfile .
I just have to do what i wrote below
ARG ldap.url=ldaps://xxx.xx:636
** ldap.bindDn=CN=xxx,OU=**