]> git.sur5r.net Git - openldap/commitdiff
SASL tweaks (ITS#2000) (ITS#2202)
authorKurt Zeilenga <kurt@openldap.org>
Wed, 27 Nov 2002 19:31:19 +0000 (19:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 27 Nov 2002 19:31:19 +0000 (19:31 +0000)
servers/slapd/sasl.c

index da408fc394f549229b40b00d9f087a8a2857109b..dec3c1f97268c1285a10873fe2d358c3311f53e3 100644 (file)
@@ -1294,7 +1294,7 @@ int slap_sasl_open( Connection *conn )
                }
        }
        sc = sasl_server_new( "ldap", global_host, global_realm,
-               iplocalport, ipremoteport, session_callbacks, 0, &ctx );
+               iplocalport, ipremoteport, session_callbacks, SASL_SUCCESS_DATA, &ctx );
        if ( iplocalport != NULL ) {
                ch_free( iplocalport );
        }
@@ -1515,7 +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 : NULL,
+                       cred->bv_len ? cred->bv_val : "",
                        cred->bv_len,
                        (SASL_CONST char **)&response.bv_val, &reslen, &errstr );