]> git.sur5r.net Git - openldap/commitdiff
Don't send optional cred if empty
authorKurt Zeilenga <kurt@openldap.org>
Fri, 15 Sep 2000 00:09:24 +0000 (00:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 15 Sep 2000 00:09:24 +0000 (00:09 +0000)
libraries/libldap/sasl.c

index 1c74713da6e2358938fea87a9ee34d18ec05cb83..a17ca56c9eda4b4e05778c1696a90d276aee583f 100644 (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,