From: Howard Chu Date: Sun, 22 Jul 2007 16:45:27 +0000 (+0000) Subject: ITS#5040 don't touch modifyTimestamp and other opattrs when updating X-Git-Tag: OPENLDAP_REL_ENG_2_3_38~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b50a69471b2187ee801a1ee581c8f2d8da7588c;p=thirdparty%2Fopenldap.git ITS#5040 don't touch modifyTimestamp and other opattrs when updating ppolicy opattrs --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 2c68c9d0af..c1b3bcb5ff 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1120,6 +1120,8 @@ locked: op2.o_dn = op->o_bd->be_rootdn; op2.o_ndn = op->o_bd->be_rootndn; op2.o_bd->bd_info = (BackendInfo *)on->on_info; + /* Don't touch modifyTimestamp etc */ + SLAP_DBFLAGS( op2.o_bd ) |= SLAP_DBFLAG_NOLASTMOD; rc = op->o_bd->be_modify( &op2, &r2 ); slap_mods_free( mod, 1 ); }