mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue