Commit fb209232 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

do not set c_authz_backend unless needed (ITS#6824, thanks to Howard)

parent bb82a7c3
......@@ -2005,7 +2005,7 @@ slap_sasl2dn(
op.o_bd->be_search( &op, &rs );
FINISHED:
if( !BER_BVISEMPTY( sasldn ) ) {
if( opx == opx->o_conn->c_sasl_bindop && !BER_BVISEMPTY( sasldn ) ) {
opx->o_conn->c_authz_backend = op.o_bd;
}
if( !BER_BVISNULL( &op.o_req_dn ) ) {
......
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