From fb2092328c20a73d7dd81a0cc6a5fdd1316e6bf5 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 3 Feb 2011 20:04:56 +0000 Subject: [PATCH] do not set c_authz_backend unless needed (ITS#6824, thanks to Howard) --- servers/slapd/saslauthz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 847904ee9b..353660e0af 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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 ) ) { -- 2.39.5