2017-08-16 55 views
0


我想對的Ldap工作 ---->LdapSettings ---->config.json,我需要對配置一些澄清,
這是我的配置:MatterMost:如何在LdapSettings中填充字段?

> 「LdapSettings」: { 
    「Enable」: true, 
    「LdapServer」: 「myLdapServerAdress」, 
    「LdapPort」: 389, 
    「ConnectionSecurity」: 「」, 
    「BaseDN」: 「dc=XX,dc=com」, // is this true like that ? 
    「BindUsername」: 「」, I’m confused about what i should put in this field?? 
    「BindPassword」: 「」, 
    「UserFilter」:「」, 
    「FirstNameAttribute」: 「」, 
    「LastNameAttribute」: 「sn」, 
    「EmailAttribute」: 「mail」, // i put the @ mail of who?? 
    「UsernameAttribute」: 「uid」, // i don’t have an idea about the uid 
    "NicknameAttribute": 「」, 
    「IdAttribute」: 「uid」, 
    「PositionAttribute」: 「」, 
    「SyncIntervalMinutes」: 60, 
    「SkipCertificateVerification」: false, 
    「QueryTimeout」: 60, 
    「MaxPageSize」: 0, 
    「LoginFieldName」: 「」 
}, 

感謝您的幫助。

回答

0

首先,我建議如果您還沒有,請查看有關使用Mattermost配置LDAP的文檔。有一個一般的介紹here,並解釋了每個配置設置here

現在,到特定的配置文件條目您已要求澄清:

的BaseDN:這是您的目錄的基本專有名稱,如dc=corp,dc=example,dc=com。如果要過濾可在LDAP樹中訪問Mattermost的用戶,請在此處執行此操作,例如,如果您只希望mattermost組的成員有權訪問,則最終可能會在此處顯示一個值,如ou=mattermost,ou=users,dc=corp,dc=example,dc=com

BindUsername:這是可以綁定到LDAP服務器的只讀帳戶的用戶名,Mattermost將使用該帳戶從LDAP服務器讀取用戶。

EmailAttribute:這是在您的LDAP服務器中包含用戶的電子郵件地址的LDAP屬性名稱。 Mattermost將從LDAP中的此屬性填充每個用戶的email字段。

UsernameAttribute:與EmailAttribute類似,Mattermost將在每個LDAP用戶中使用此屬性的值來填充Mattermost中的用戶名字段。該字段值對於每個用戶都必須是唯一的。