diff options
author | Andrej Gessel <Andrej.Gessel@janztec.com> | 2017-10-19 17:16:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-11-24 15:50:16 +0100 |
commit | 40bd7e145a68c9a58d6bc3c5526a12fdf0027729 (patch) | |
tree | 969db90d3d65742556ecc64f68e70fb9336cfc6f /source4/dsdb/samdb | |
parent | 4815efc0e3f89079e7c9b868b7514ea7c49a807c (diff) | |
download | samba-40bd7e145a68c9a58d6bc3c5526a12fdf0027729.tar.gz |
repl_meta_data: Fix removing of backlink on deleted objects
USER is memberOf GROUP and they both were deleted on W2K8R2 AD. Domain join ends
with error below.
Failed to apply records: ../source4/dsdb/samdb/ldb_modules/repl_meta_data.c:421
8: Failed to remove backlink of memberOf when deleting CN=USER\0ADEL:a1f2a2cc-1
179-4734-b753-c121ed02a34c,CN=Deleted Objects,DC=samdom,DC=intern: dsdb_module_
search_dn: did not find base dn CN=GROUP\0ADEL:030d0be1-3ada-4b93-8371-927f2092
3116,CN=Deleted Objects,DC=samdom,DC=intern (0 results): Operations error
Failed to commit objects: WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13120
Signed-off-by: Andrej Gessel <Andrej.Gessel@janztec.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index c7aacd83615..597e49c50f1 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -3792,7 +3792,8 @@ static int replmd_delete_remove_link(struct ldb_module *module, ret = dsdb_module_search_dn(module, tmp_ctx, &link_res, msg->dn, attrs, DSDB_FLAG_NEXT_MODULE | - DSDB_SEARCH_SHOW_EXTENDED_DN, + DSDB_SEARCH_SHOW_EXTENDED_DN | + DSDB_SEARCH_SHOW_RECYCLED, parent); if (ret != LDB_SUCCESS) { |