Django 使用ldap认证细节
项目地址 https://github.com/etianen/django-python3-ldap LDAP django_python3_ldap 如果不添加 cn 查找用户会出现同步时出现如下报错: LDAP bind failed: LDAPInvalidCredentialsResult - 49 - invalidCredentials - None - None - bindResponse - None CommandError: Could not connect to LDAP server 添加 admin Generic: Posix Group (posixGroup),并且增加 password 属性,用于登录查找,或者个人用户也可以 ### LDAP # The URL of the LDAP server. LDAP_AUTH_URL = "ldap://172.16.16.4:389" # Initiate TLS on connection. LDAP_AUTH_USE_TLS = False # The LDAP search base for loo....