LDAP bind failed: LDAPInvalidCredentialsResult - 49 - invalidCredentials - None - 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 52e, v2580 - bindResponse - None
See original GitHub issueHi
If i try and login with a domain user, i get this error:
LDAP bind failed: LDAPInvalidCredentialsResult - 49 - invalidCredentials - None - 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 52e, v2580 - bindResponse - None
now if i try and login with the user i am using in the settings.py to do the ldap auth, i get
LDAP connect succeeded LDAP user lookup failed
that seems correct as the service accoutn is not in the same place as the domain users. Also if i run the ldap_sync_users i can see its pulling users from the correct ou. But i dont want all my users sync to the db, so i see no reason to do the sync, as the user is supposed to be synced when they login right?
` LDAP_AUTH_URL = “ldap://dc01.intern.domain.local:389”
LDAP_AUTH_USE_TLS = False
LDAP_AUTH_SEARCH_BASE = “OU=MyUsers,DC=intern,DC=domain,DC=local”
LDAP_AUTH_FORMAT_USERNAME = “django_python3_ldap.utils.format_username_active_directory”
LDAP_AUTH_CONNECTION_USERNAME = ‘XXXX’ LDAP_AUTH_CONNECTION_PASSWORD = ‘Xyx’
LDAP_AUTH_USER_FIELDS = { “username”: “sAMAccountName”, “first_name”: “givenName”, “last_name”: “sn”, “email”: “mail”, }
LDAP_AUTH_OBJECT_CLASS = “user”`
any idea what i am missing? (im testing the login on the admin login page)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top GitHub Comments
This seems to work if i login as username@email.com but if i change it to
it does not work with my username only. What am i missing?
This helped, thanks.