2017-09-06 125 views
0

我想爲SonarQube服務器的LDAP屬性設置正確的值。我很難找到解釋這些屬性的可能值列表的資源,並瞭解在哪種情況下使用哪種資源? 我指的是 例如,如何爲SonarQube服務器配置LDAP插件?

Property1: ldap.user.request  
Default_Value: (&(objectClass=inetOrgPerson)(uid={login})) 
Example for AD: (&(objectClass=user)(sAMAccountName={login})) 

這裏什麼都是爲了objectClass可能的值? 什麼時候使用價值inetOrgPerson? 什麼時候使用價值user? 我何時使用uid? 我何時使用sAMAccountName?這是什麼意思?

還有其他幾個屬性,如memberAttribute,idAttribute,我不明白。

是否有可用的指南來描述所有ldap屬性及其所有可能的值?我試圖在LDAP.com上搜索openldap.org,但無法找到相關答案。

回答

0

這是我在conf文件中用作LDAP配置的內容。 希望能幫助你開創一個好的開始。

# LDAP configuration 
# General Configuration 
sonar.security.realm: LDAP 
sonar.security.savePassword: true 
sonar.authenticator.createUsers: true 
sonar.security.localUsers: admin,sonar-build 
ldap.url: ldap://ipadress:389 
ldap.bindDn: CN=SonarUser,OU=Service Accounts,DC=domain,DC=com 
ldap.bindPassword: {aes}xxx 

# User Configuration 
ldap.user.baseDn: DC=domain,DC=com 
ldap.user.request: (&(objectClass=user)(sAMAccountName={login})) 
ldap.user.realNameAttribute: cn 
ldap.user.emailAttribute: mail 

# Group Configuration 
ldap.group.baseDn: DC=domain,DC=com 
ldap.group.request: (&(objectClass=group)(memberUid={uid})) 
+0

這又是一個LDAP confguration的一個例子,我要尋找的是什麼,這些屬性和值意味着資源/解釋。 –

相關問題