From bad43369e186dca235d0bae4a3753348ce704395 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 15 Sep 2000 18:12:56 +0000 Subject: [PATCH] Don't send empty cred --- CHANGES | 1 + libraries/libldap/sasl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index bf89c63339..e180b8ba3a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,7 @@ OpenLDAP 2.0 Change Log OpenLDAP 2.0.x Engineering + Fixed -lldap SASL interoperability bug Removed lint OpenLDAP 2.0.3 Release diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 1c74713da6..a17ca56c9e 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -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, -- 2.39.5