]> git.sur5r.net Git - openldap/commitdiff
Patch for SASL EXTERNAL. Needs to be tested with other mechanisms.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 18 Sep 2001 07:44:18 +0000 (07:44 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 18 Sep 2001 07:44:18 +0000 (07:44 +0000)
servers/slapd/sasl.c

index 3bcc33b738ef848256bfc85b151b1f5dd75b55c1..ca814513c7cdcb436fee00cda58530941b0dc34e 100644 (file)
@@ -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 {