s4-dsdb: allow groupType update on deleted objects
authorAndrew Tridgell <tridge@samba.org>
Thu, 6 Oct 2011 01:31:21 +0000 (12:31 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 6 Oct 2011 03:34:21 +0000 (14:34 +1100)
this allows dbcheck to fix groupType on objects that have been deleted

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/samdb/ldb_modules/samldb.c

index b1f6b720dcde95e248046799515b1c4935c0a050..e0400fa8ed8da0f2b45977aa71a104c643444077 100644 (file)
@@ -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;
        }