kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
731 stars 251 forks source link

error about Invalid credentials #230

Closed uuxia closed 2 years ago

uuxia commented 4 years ago

hi guys, i got some errors when use the auth-ldap. below is the config info in nginx.conf: ldap_server shuion { url ldap://xxxx:389/DC=Sol,DC=Shuion,DC=Com,DC=CN?sAMAccountName?sub?(objectClass=person); binddn "shuion\\svc-test"; binddn_passwd 7788; group_attribute uniquemember; group_attribute_is_dn on; require valid_user; } and the nginx error log: 2020/01/14 16:44:19 [notice] 7598#0: http_auth_ldap: parse_require in /etc/nginx/nginx.conf:42 2020/01/14 16:44:19 [notice] 7598#0: signal process started 2020/01/14 16:44:19 [error] 7600#0: http_auth_ldap: Initial bind failed (49: Invalid credentials [80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839]) 2020/01/14 16:44:19 [error] 7601#0: http_auth_ldap: Initial bind failed (49: Invalid credentials [80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839]) 2020/01/14 16:44:19 [error] 7602#0: http_auth_ldap: Initial bind failed (49: Invalid credentials [80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839]) 2020/01/14 16:44:19 [error] 7599#0: http_auth_ldap: Initial bind failed (49: Invalid credentials [80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839])

i am sure the ldap username and password is correct. Now i am confused about the error log. could anyone give me some ideas about it? thanks!