版本:6.0.0-ga.2 的ldap如何配置报错dap.error: bind ldap fail: LDAP Result Code 49 "Invalid Credentials"

Viewed 95

dap.error: bind ldap fail: LDAP Result Code 49 "Invalid Credentials"

确定密码 没问题
Enable = true
Host = '.in'
Port = 389
BaseDn = 'dc=,dc=in'
BindUser = 'cn=,dc=,dc=in'
BindPass = '*'
AuthFilter = '(&(uid=%s))'
CoverAttributes = true
TLS = false
StartTLS = true
DefaultRoles = ['Standard']

[Attributes]
Nickname = 'cn'
Phone = 'mobile'
Email = 'mail'

2 Answers

我使用freeipa集成ldap正确配置

Enable = true #开启ldap登录
Host = 'ldap地址'
Port = 389
BaseDn = 'cn=users,cn=accounts,dc=域名,dc=域,dc=域后缀'
BindUser = 'uid=ldap的管理员账户,cn=users,cn=accounts,dc=域名,dc=域,dc=域后缀'
BindPass = '密码'
AuthFilter = '(&(uid=%s))'
CoverAttributes = true
TLS = false
StartTLS = false
DefaultRoles = ['Standard'] #这里ldap用户进入web页面后的角色可以通过修改权限实现

[Attributes]
Nickname = 'cn'
Phone = 'cn'
Email = 'mail'

登录的时候填写的用户名密码不对