SonarQube LDAP Authentication seems to load but won't allow login via domain user

后端 未结 7 1637
走了就别回头了
走了就别回头了 2020-12-28 09:55

I\'ve been trying to setup SonarQube (v4.1) with the LDAP authentication plugin (v1.4) and I just can\'t get it to authenticate against my domain user. My config is setup as

7条回答
  •  无人及你
    2020-12-28 10:06

    None of solutions before worked for me, but this:

    # Configuration
    sonar.realm=myreal.domain.com
    sonar.security.realm=LDAP
    sonar.authenticator.createUsers=true
    sonar.security.savePassword=true
    sonar.security.updateUserAttributes=true
    ldap.url=ldap://myreal.domain.com:389
    
    ldap.bindDn=cn=CNUser,dc=domain,dc=com
    ldap.bindPassword=password
    
    # User Configuration
    ldap.user.baseDn=ou=people,dc=domain,dc=com
    ldap.user.request=(&(objectClass=user)(sAMAccountName={login}))
    ldap.user.realNameAttribute=cn
    ldap.user.emailAttribute=mail
    
    #logeo lo que pasa
    wrapper.console.loglevel=DEBUG
    

    My Ldap server do needs authentication, so i cant avoid that. If it doesnt works for you, try not to especify the ldap.user.request: all depends of the configuration of your network´s LDAP server.

提交回复
热议问题