2017-08-16 51 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中的用户名字段。该字段值对于每个用户都必须是唯一的。