-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nslcd use ldap_sasl_bind and fail to bind #55
Comments
The
log indicates that an authentication attempt was made with a blank password (otherwise the second argument would have been The current code uses |
Thank you for your reply. With pam_authc_ppolicy no ldap_set_option(LDAP_OPT_TIMEOUT,0) The system it's an Ubuntu 20.4 LTS with nslcd 0.9.11 I made the same exact configuration on a Rocky linux 8.6 with nslcd 0.9.9 (without setting pam_authc_ppolicy to no), and it works perfectly. |
How can I diable ldap_sasl_bind for user credential credential verification?
The simple ldap work correctly, but when nslcd try to check the user credentials, it use lsap_sasl_bind and fail even if the user credentials are ok
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_initialize(ldap://ldapserver)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_rebind_proc()
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,3)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_DEREF,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_TIMELIMIT,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_TIMEOUT,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_NETWORK_TIMEOUT,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_REFERRALS,LDAP_OPT_OFF)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_RESTART,LDAP_OPT_ON)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_simple_bind_s("CN=LdapBind_user,OU=ServiceAccounts,DC=domain,DC=net","") (uri="ldap://ldapserver")
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_result(): CN=MyUser,OU=xxx,OU=yyy,DC=domain,DC=net
nslcd: [8b4567] <authc="xxxxx"> DEBUG: myldap_search(base="CN=MyUser,OU=xxx,OU=yyy,DC=domain,DC=net", filter="(objectClass=)")
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_initialize(ldap://ldapserver)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_rebind_proc()
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,3)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_DEREF,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_TIMELIMIT,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_TIMEOUT,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_NETWORK_TIMEOUT,0)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_REFERRALS,LDAP_OPT_OFF)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_set_option(LDAP_OPT_RESTART,LDAP_OPT_ON)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_sasl_bind("CN=MyUser,OU=xxx,OU=yyy,DC=domain,DC=net","")* (uri="ldap://ldapserver") (ppolicy=yes)
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_parse_result() result: Invalid credentials: 80090308: LdapErr: DSID-0C090447, comment: AcceptSecurityContext error, data 52e, v3839
nslcd: [8b4567] <authc="xxxxx"> DEBUG: failed to bind to LDAP server ldap://ldapserver: Invalid credentials: 80090308: LdapErr: DSID-0C090447, comment: AcceptSecurityContext error, data 52e, v3839
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_unbind()
nslcd: [8b4567] <authc="xxxxx"> CN=CN=MyUser,OU=xxx,OU=yyy,DC=domain,DC=net: Invalid credentials
nslcd: [8b4567] <authc="xxxxx"> DEBUG: myldap_search(base="dc=domain,dc=net", filter="(&(objectClass=user)(saMAccountName=xxxxx))")
nslcd: [8b4567] <authc="xxxxx"> DEBUG: ldap_result(): CN=MyUser,OU=xxx,OU=yyy,DC=domain,DC=net
The text was updated successfully, but these errors were encountered: