]> git.sur5r.net Git - openldap/commitdiff
do not set c_authz_backend unless needed (ITS#6824, thanks to Howard)
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Feb 2011 20:04:56 +0000 (20:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Feb 2011 20:04:56 +0000 (20:04 +0000)
servers/slapd/saslauthz.c

index 847904ee9b1b9e48224f318ffa75d2bcfbdbbac7..353660e0af0fcb6a67cd798da279a1914a735c68 100644 (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 ) ) {