1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/dsdb/repl
Tim Beale 67617d4700 drs: Check target object is known after applying objects
Currently we only check that the target object is known at the end of
the transaction (i.e. the .prepare_commit hook). It's too late at this
point to resend the request with GET_TGT. Move this processing earlier
on, after we've applied all the objects (i.e. off the .extended hook).

In reality, we need to perform the checks at both points. I've
split the common code that gets the source/target details out of the
la_entry into a helper function. It's not the greatest function ever,
but seemed to make more sense than duplicating the code.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12972
2017-08-18 06:07:12 +02:00
..
drepl_extended.c werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/dsdb/ 2016-09-28 00:04:19 +02:00
drepl_fsmo.c dsdb: Add assert in drepl_take_FSMO_role 2013-07-24 16:35:32 +02:00
drepl_notify.c Correct "successfuly" typos. 2017-02-22 08:26:22 +01:00
drepl_out_helpers.c drs: Fail replication transaction instead of dropping links 2017-08-18 06:07:11 +02:00
drepl_out_helpers.h
drepl_out_pull.c s4-drepl: Block GetNCChanges during a DsReplicaSync 2017-07-23 12:32:49 +02:00
drepl_partitions.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
drepl_periodic.c s4-drepl: Use tevent_schedule_immediate() in DsReplicaSync handler 2017-07-22 07:45:31 +02:00
drepl_replica.c s4-drs: initial skeleton for DrsReplica{Add,Del,Mod} calls 2010-09-16 16:08:46 +10:00
drepl_ridalloc.c s4-dsdb: Use samdb_dn_is_our_ntdsa() 2012-08-14 15:37:22 +02:00
drepl_secret.c repl_secret: Error condition should sound harmless 2017-03-27 20:08:19 +02:00
drepl_service.c s4-drepl: Use tevent_schedule_immediate() in DsReplicaSync handler 2017-07-22 07:45:31 +02:00
drepl_service.h s4-drepl: Use tevent_schedule_immediate() in DsReplicaSync handler 2017-07-22 07:45:31 +02:00
replicated_objects.c drs: Check target object is known after applying objects 2017-08-18 06:07:12 +02:00