mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:dsdb/descriptor: fix replication of NC heads
The sub NC heads maybe replicated with the parent partition, if we don't need to recalculate the nTSecurityDescriptor attribute in that case, the replication of the of the sub partition should handle that. This fixes error messages like this: descriptor_sd_propagation_recursive: DC=ForestDnsZones,DC=s40dom,DC=base not found under DC=s40dom,DC=base Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
8021247895
commit
734d14b548
@ -1192,12 +1192,12 @@ static int descriptor_sd_propagation_recursive(struct ldb_module *module,
|
|||||||
msg);
|
msg);
|
||||||
|
|
||||||
if (msg == NULL) {
|
if (msg == NULL) {
|
||||||
ldb_debug_set(ldb, LDB_DEBUG_FATAL,
|
ldb_debug(ldb, LDB_DEBUG_WARNING,
|
||||||
"descriptor_sd_propagation_recursive: "
|
"descriptor_sd_propagation_recursive: "
|
||||||
"%s not found under %s",
|
"%s not found under %s",
|
||||||
ldb_dn_get_linearized(c->dn),
|
ldb_dn_get_linearized(c->dn),
|
||||||
ldb_dn_get_linearized(change->dn));
|
ldb_dn_get_linearized(change->dn));
|
||||||
return LDB_ERR_OPERATIONS_ERROR;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg->elements = (struct ldb_message_element *)c;
|
msg->elements = (struct ldb_message_element *)c;
|
||||||
|
Loading…
Reference in New Issue
Block a user