LDAP配置后不生效 #1718
Unanswered
jiaping0424
asked this question in
Q&A
LDAP配置后不生效
#1718
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
现象:正常配置了LDAP相关内容,但用LDAP登录时LDAP账号没起作用,同时也没有日志显示。
配置如下:
以上的配置是正确的,我们在其他系统里也用了LDAP,但archery日志里并没有错误,但如果我把上面的配置修改一下,就可以看到报错:
将AUTH_LDAP_BIND_DN = 'cn=xxadmin,ou=XX账号,dc=xx,dc=com' 去掉 ou=XX账号,改成如下:
AUTH_LDAP_BIND_DN = 'cn=xxadmin,dc=xx,dc=com'
登录的时候就会报如下错误:
[2022-07-28 16:56:49,920][MainThread:140328384603968][task_id:django_auth_ldap][backend.py:368][WARNING]- Caught LDAPError while authenticating XXX@xxx.com: INVALID_CREDENTIALS({'msgtype': 97, 'msgid': 1, 'result': 49, 'desc': 'Invalid credentials', 'ctrls': [], 'info': '80090308: LdapErr: DSID-0C090439, comment: AcceptSecurityContext error, data 52e, v4563'})
这说明配置不正确的情况下会报错,配置正确的情况下不报错,但也登录不上,有没有遇到过类似问题的伙伴,帮分析一下,感谢!
Beta Was this translation helpful? Give feedback.
All reactions