diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-07-14 13:18:48 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-07-21 11:44:36 +1000 |
commit | a2c425858b6bbc9756adba46d90fdfa6004c2ac2 (patch) | |
tree | 04a8b3184ac7068d7b4f8b367f3fd38d959e3e54 /source4/dsdb | |
parent | 114377a91f3bf823ebd066e36a9bc0d16df4eff2 (diff) | |
download | samba-a2c425858b6bbc9756adba46d90fdfa6004c2ac2.tar.gz samba-a2c425858b6bbc9756adba46d90fdfa6004c2ac2.tar.bz2 samba-a2c425858b6bbc9756adba46d90fdfa6004c2ac2.zip |
s4-kcc: use dsdb_delete() instead of ldb_delete()
this adds the DSDB_SEARCH_SHOW_DELETED flag, which fixes deletion of
deleted objects
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/kcc/kcc_deleted.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/kcc/kcc_deleted.c b/source4/dsdb/kcc/kcc_deleted.c index 35f538de0c..5d2585d60b 100644 --- a/source4/dsdb/kcc/kcc_deleted.c +++ b/source4/dsdb/kcc/kcc_deleted.c @@ -89,7 +89,7 @@ NTSTATUS kccsrv_check_deleted(struct kccsrv_service *s, TALLOC_CTX *mem_ctx) whenChanged = ldb_string_to_time(tstring); } if (t - whenChanged > tombstoneLifetime*60*60*24) { - ret = ldb_delete(s->samdb, res->msgs[i]->dn); + ret = dsdb_delete(s->samdb, res->msgs[i]->dn, DSDB_SEARCH_SHOW_DELETED); if (ret != LDB_SUCCESS) { DEBUG(1,(__location__ ": Failed to remove deleted object %s\n", ldb_dn_get_linearized(res->msgs[i]->dn))); |