]> git.sur5r.net Git - openldap/commitdiff
Perform database updates as root
authorHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 11:25:37 +0000 (11:25 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 11:25:37 +0000 (11:25 +0000)
servers/slapd/overlays/pcache.c

index a1527cff477fb6052962d503b22de60e2f45efc2..ebfd81aea24a9aff5003d39c124f767edf579c84 100644 (file)
@@ -1074,6 +1074,8 @@ cache_entries(
        ber_str2bv(uuidbuf, query_uuid->bv_len, 1, query_uuid);
 
        op_tmp.o_bd = &db;
+       op_tmp.o_dn = db.be_rootdn;
+       op_tmp.o_ndn = db.be_rootndn;
        db.bd_info = cm->bi;
        db.be_private =cm->be_private;
        db.be_flags |= SLAP_BFLAG_NO_SCHEMA_CHECK;