Configuration 最重要的:如何在LdapSettings中填充字段?

Configuration 最重要的:如何在LdapSettings中填充字段?,configuration,ldap,mattermost,Configuration,Ldap,Mattermost,我正在尝试使用Ldap->LdapSettings->config.json,我需要一些关于配置的说明, 这是我的配置: > “LdapSettings”: { “Enable”: true, “LdapServer”: “myLdapServerAdress”, “LdapPort”: 389, “ConnectionSecurity”: “”, “BaseDN”: “dc=XX,dc=com”, // is this true like that ?


我正在尝试使用Ldap->LdapSettings->config.json,我需要一些关于配置的说明,
这是我的配置:

> “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”: “” 
},

感谢您的帮助。

首先,如果您还没有,我建议您查看有关使用Mattermost配置LDAP的文档。这里有一个一般性的介绍,并解释了每个配置设置

现在,转到您要求澄清的特定配置文件条目:

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中的该属性填充每个用户的
电子邮件
字段

UsernameAttribute:与
EmailAttribute
类似,Mattermost将在每个LDAP用户中使用此属性的值来填充Mattermost中的用户名字段。对于每个用户,此字段值必须是唯一的