From 9434a7d6765ee3a5518b034df56d66c551a230ef Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 28 Jul 2010 02:43:21 +0000 Subject: [PATCH] ITS#6608 don't update mod opattrs on single-master slaves --- servers/slapd/overlays/ppolicy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 101a5b6c90..2b9f25f68a 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -1165,6 +1165,9 @@ locked: c.ldctl_iscritical = 1; c.ldctl_oid = LDAP_CONTROL_RELAX; } else { + /* If not forwarding, don't update opattrs */ + if ( SLAP_SINGLE_SHADOW( op->o_bd )) + op2.orm_no_opattrs = 1; op2.o_bd->bd_info = (BackendInfo *)on->on_info; } rc = op2.o_bd->be_modify( &op2, &r2 ); -- 2.39.5