From: Kurt Zeilenga Date: Tue, 18 Sep 2001 07:44:18 +0000 (+0000) Subject: Patch for SASL EXTERNAL. Needs to be tested with other mechanisms. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1092 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a18352c066b1cc1000effa1dbd1b79e7555e35c;p=openldap Patch for SASL EXTERNAL. Needs to be tested with other mechanisms. --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 3bcc33b738..ca814513c7 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -636,9 +636,11 @@ int slap_sasl_bind( } if ( !conn->c_sasl_bind_in_progress ) { + const char *kludge = ""; sc = sasl_server_start( ctx, conn->c_sasl_bind_mech, - cred->bv_val, cred->bv_len, + cred->bv_len ? cred->bv_val : kludge, + cred->bv_len, (char **)&response.bv_val, &reslen, &errstr ); } else {