mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Don't use default binddn when password is empty
This commit is contained in:
parent
dc41a6b37e
commit
b166736dbf
@ -77,7 +77,7 @@ ldap_sasl_bind(
|
||||
if( rc != LDAP_SUCCESS ) return rc;
|
||||
|
||||
if( mechanism == LDAP_SASL_SIMPLE ) {
|
||||
if( dn == NULL && cred != NULL ) {
|
||||
if( dn == NULL && cred != NULL && cred->bv_len ) {
|
||||
/* use default binddn */
|
||||
dn = ld->ld_defbinddn;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user