summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-10-06 12:31:21 +1100
committerAndrew Tridgell <tridge@samba.org>2011-10-06 14:34:21 +1100
commit2d63789e4869c147364d4e58c678a0c08b2e6859 (patch)
tree849eebc8fc1fa9f5ad2e41db25e3eb2d2b8f649e
parent8976e1d50d6dc6633af82e05afe51ef41b61c66c (diff)
downloadsamba-2d63789e4869c147364d4e58c678a0c08b2e6859.tar.gz
samba-2d63789e4869c147364d4e58c678a0c08b2e6859.tar.bz2
samba-2d63789e4869c147364d4e58c678a0c08b2e6859.zip
s4-dsdb: allow groupType update on deleted objects
this allows dbcheck to fix groupType on objects that have been deleted Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index b1f6b720dc..e0400fa8ed 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -1458,7 +1458,8 @@ static int samldb_group_type_change(struct samldb_ctx *ac)
talloc_free(tmp_msg);
ret = dsdb_module_search_dn(ac->module, ac, &res, ac->msg->dn, attrs,
- DSDB_FLAG_NEXT_MODULE, ac->req);
+ DSDB_FLAG_NEXT_MODULE |
+ DSDB_SEARCH_SHOW_DELETED, ac->req);
if (ret != LDB_SUCCESS) {
return ret;
}