archery v1.10.0配置ldap集成修改.env文件不生效 #2480
-
archery v1.10.0配置ldap集成修改.env文件不生效,也没有错误日志提示 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
我的.env配置文件如下: |
Beta Was this translation helpful? Give feedback.
-
为什么只支持username值为cn呀,如果是windows AD唯一值是sAMAccountName |
Beta Was this translation helpful? Give feedback.
-
问题解决了,archery v.1.10.0对接windows AD的配置参数和ldap有点差别,正确的参数如下: LDAPENABLE_LDAP = True
|
Beta Was this translation helpful? Give feedback.
问题解决了,archery v.1.10.0对接windows AD的配置参数和ldap有点差别,正确的参数如下:
LDAP
ENABLE_LDAP = True
if ENABLE_LDAP:
import ldap
from django_auth_ldap.config import LDAPSearch