struct ldb_dn *nc_root;
struct ldb_context *sam_ctx = b_state->sam_ctx_system?b_state->sam_ctx_system:b_state->sam_ctx;
+ dn = drs_ObjectIdentifier_to_dn(mem_ctx, sam_ctx, req->naming_context);
+ W_ERROR_HAVE_NO_MEMORY(dn);
+
DEBUG(4,("DsReplicaUpdateRefs for host '%s' with GUID %s options 0x%08x nc=%s\n",
req->dest_dsa_dns_name, GUID_string(mem_ctx, &req->dest_dsa_guid),
req->options,
- drs_ObjectIdentifier_to_string(mem_ctx, req->naming_context)));
+ ldb_dn_get_extended_linearized(dn)));
/*
* 4.1.26.2 Server Behavior of the IDL_DRSUpdateRefs Method
return WERR_DS_DRA_INVALID_PARAMETER;
}
- dn = drs_ObjectIdentifier_to_dn(mem_ctx, sam_ctx, req->naming_context);
- W_ERROR_HAVE_NO_MEMORY(dn);
ret = dsdb_find_nc_root(sam_ctx, dn, dn, &nc_root);
if (ret != LDB_SUCCESS) {
DEBUG(2, ("Didn't find a nc for %s\n", ldb_dn_get_linearized(dn)));