We find that Windows 2012R2 sends a NULL parent_guid here, probably when no change to name is replicated.
That is, if there has not been a rename, this is not required information, as we
can just merge with the existing object, not matter where it is
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
if (in->parent_object_guid == NULL) {
out->parent_guid = NULL;
- if ((instanceType & INSTANCE_TYPE_IS_NC_HEAD) == 0) {
- DEBUG(0, ("Refusing to replicate %s from a server that did not provide a parentGUID!\n",
- ldb_dn_get_linearized(msg->dn)));
- return WERR_DS_DRA_INCONSISTENT_DIT;
- }
} else {
out->parent_guid = talloc(mem_ctx, struct GUID);
W_ERROR_HAVE_NO_MEMORY(out->parent_guid);