Skip to content
Snippets Groups Projects
Commit b166736d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Don't use default binddn when password is empty

parent dc41a6b3
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment