ITS#2267: SASL empty cred fix

This commit is contained in:
Kurt Zeilenga 2003-01-21 17:31:55 +00:00
parent fb22bdeb58
commit 35f673aaa5

View File

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