Don't send optional cred if empty

This commit is contained in:
Kurt Zeilenga 2000-09-15 00:09:24 +00:00
parent ac0714384c
commit b4c9287f45

View File

@ -103,7 +103,7 @@ ldap_sasl_bind(
ld->ld_version, dn, LDAP_AUTH_SIMPLE,
cred );
} else if ( cred == NULL ) {
} else if ( cred == NULL || !cred->bv_len ) {
/* SASL bind w/o creditials */
rc = ber_printf( ber, "{it{ist{sN}N}" /*}*/,
++ld->ld_msgid, LDAP_REQ_BIND,