From: Kurt Zeilenga Date: Thu, 22 May 2003 16:21:14 +0000 (+0000) Subject: Don't use default binddn when password is empty X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b166736dbf04c9397b810dcbec7f4e6e420f5db8;p=openldap Don't use default binddn when password is empty --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 1601354cad..28802c868f 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -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; }