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

This commit is contained in:
Pierangelo Masarati 2011-02-03 20:04:56 +00:00
parent bb82a7c3c4
commit fb2092328c

View file

@ -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 ) ) {