From: Pierangelo Masarati Date: Thu, 3 Feb 2011 20:04:56 +0000 (+0000) Subject: do not set c_authz_backend unless needed (ITS#6824, thanks to Howard) X-Git-Tag: MIGRATION_CVS2GIT~129 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fb2092328c20a73d7dd81a0cc6a5fdd1316e6bf5;p=openldap do not set c_authz_backend unless needed (ITS#6824, thanks to Howard) --- 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 ) ) {