mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Make be_shadow_update more specific for syncrepl ops, since mirrormode
lets normal users write to a syncrepl database
This commit is contained in:
parent
80150a3679
commit
c636f654a4
@ -687,7 +687,10 @@ be_slurp_update( Operation *op )
|
||||
int
|
||||
be_shadow_update( Operation *op )
|
||||
{
|
||||
return ( SLAP_SYNC_SHADOW( op->o_bd ) ||
|
||||
/* This assumes that all internal ops (connid == -1) on a syncrepl
|
||||
* database are syncrepl operations.
|
||||
*/
|
||||
return (( SLAP_SYNC_SHADOW( op->o_bd ) && op->o_connid == -1 ) ||
|
||||
( SLAP_SHADOW( op->o_bd ) && be_isupdate_dn( op->o_bd, &op->o_ndn ) ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user