Commit e8303cbe authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

SASL tweaks (ITS#2000) (ITS#2202)

parent b1011dc7
...@@ -1294,7 +1294,7 @@ int slap_sasl_open( Connection *conn ) ...@@ -1294,7 +1294,7 @@ int slap_sasl_open( Connection *conn )
} }
} }
sc = sasl_server_new( "ldap", global_host, global_realm, 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 ) { if ( iplocalport != NULL ) {
ch_free( iplocalport ); ch_free( iplocalport );
} }
...@@ -1515,7 +1515,7 @@ int slap_sasl_bind( ...@@ -1515,7 +1515,7 @@ int slap_sasl_bind(
if ( !conn->c_sasl_bind_in_progress ) { if ( !conn->c_sasl_bind_in_progress ) {
sc = START( ctx, sc = START( ctx,
conn->c_sasl_bind_mech.bv_val, conn->c_sasl_bind_mech.bv_val,
cred->bv_len ? cred->bv_val : NULL, cred->bv_len ? cred->bv_val : "",
cred->bv_len, cred->bv_len,
(SASL_CONST char **)&response.bv_val, &reslen, &errstr ); (SASL_CONST char **)&response.bv_val, &reslen, &errstr );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment