mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Don't send optional cred if empty
This commit is contained in:
parent
ac0714384c
commit
b4c9287f45
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user