From 43c0a92d23c2be446a9568b9d937e525d676f85e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 13 Jul 2011 15:31:19 +1000 Subject: s4-dsdb Don't process deletion of member attributes here. We don't need to compare the delete against the primaryGroupID check here - that test is for adds. Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/samldb.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 0fe13e53cf..5f17e3bd6f 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -1599,6 +1599,15 @@ static int samldb_member_check(struct samldb_ctx *ac) const char *group_attrs[] = { "primaryGroupID" , NULL }; uint32_t prim_group_rid; + if (LDB_FLAG_MOD_TYPE(el->flags) == LDB_FLAG_MOD_DELETE) { + /* Deletes will be handled in + * repl_meta_data, and deletes not + * matching a member will return + * LDB_ERR_UNWILLING_TO_PERFORM + * there */ + continue; + } + member_dn = ldb_dn_from_ldb_val(ac, ldb, &el->values[j]); if (!ldb_dn_validate(member_dn)) { -- cgit