]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2200, must use SASL creds exactly as received
authorHoward Chu <hyc@openldap.org>
Thu, 28 Nov 2002 16:16:05 +0000 (16:16 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Nov 2002 16:16:05 +0000 (16:16 +0000)
servers/slapd/sasl.c

index dec3c1f97268c1285a10873fe2d358c3311f53e3..876d7d99b5ed50d9537a287a38e6ad4dfa85431a 100644 (file)
@@ -1515,8 +1515,7 @@ int slap_sasl_bind(
        if ( !conn->c_sasl_bind_in_progress ) {
                sc = START( ctx,
                        conn->c_sasl_bind_mech.bv_val,
-                       cred->bv_len ? cred->bv_val : "",
-                       cred->bv_len,
+                       cred->bv_val, cred->bv_len,
                        (SASL_CONST char **)&response.bv_val, &reslen, &errstr );
 
        } else {