]> git.sur5r.net Git - openldap/commitdiff
set authorizing backend
authorPierangelo Masarati <ando@openldap.org>
Tue, 21 Aug 2007 11:37:33 +0000 (11:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 21 Aug 2007 11:37:33 +0000 (11:37 +0000)
servers/slapd/overlays/pcache.c

index adb43618a4a7f47929e3519b0f5a08dc34f3b5f4..6cc42f29b9b5f361b79d309b615fdd7b06de62a2 100644 (file)
@@ -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;
+                       }
                }
        }