From: Kurt Zeilenga Date: Wed, 27 Nov 2002 19:31:19 +0000 (+0000) Subject: SASL tweaks (ITS#2000) (ITS#2202) X-Git-Tag: OPENLDAP_REL_ENG_2_1_9~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8303cbeb4cdf4f2a4639b4cc6154b9b873ef919;p=openldap SASL tweaks (ITS#2000) (ITS#2202) --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index da408fc394..dec3c1f972 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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 );