From: Pierangelo Masarati Date: Tue, 21 Aug 2007 11:37:33 +0000 (+0000) Subject: set authorizing backend X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~159 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b25eab8a7b346cd0ba67e023ab4d8186da78cce8;p=openldap set authorizing backend --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index adb43618a4..6cc42f29b9 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -2097,6 +2097,7 @@ pcache_op_privdb( type = slap_req2op( op->o_tag ); if ( type != SLAP_OP_LAST ) { BI_op_func **func; + int rc; /* execute, if possible */ func = &cm->db.be_bind; @@ -2105,7 +2106,10 @@ pcache_op_privdb( op2.o_bd = &cm->db; - return func[ type ]( &op2, rs ); + rc = func[ type ]( &op2, rs ); + if ( type == SLAP_OP_BIND && rc == LDAP_SUCCESS ) { + op->o_conn->c_authz_cookie = cm->db.be_private; + } } }