s4-dsdb: moved checking of duplicate member entries to repl_meta_data.c
authorAndrew Tridgell <tridge@samba.org>
Mon, 11 Jul 2011 05:32:12 +0000 (15:32 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 13 Jul 2011 10:51:04 +0000 (12:51 +0200)
commit0214b7f20cfcecd3d51aa12ae4e31cc4e095d73b
tree9a27cbf710ba115bd0bbb6a6abb26ec966bd9f17
parente858ec6e92c0232bbf82dc117c03b71e9a413be3
s4-dsdb: moved checking of duplicate member entries to repl_meta_data.c

the samldb checks failed to account for the possibility of a member
being removed and added in the same modify operation. This happens
(for example) when dbcheck is fixing a SID in a DN.

The repl_meta_data.c code already has this check, it just wasn't
giving the right specialised error code for the 'member' attribute

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/samdb/ldb_modules/samldb.c