/*
* Backlinks for the replmd_add() case (we want to create
* backlinks after creating the user, but before the end of
- * the ADD request)
+ * the ADD request)
*/
struct la_backlink *la_backlinks;
{
const struct dsdb_attribute *target_attr;
struct la_backlink *bl;
-
+
bl = talloc(ac, struct la_backlink);
if (bl == NULL) {
ldb_module_oom(module);
const struct dsdb_attribute *target_attr;
struct la_backlink bl;
int ret;
-
+
target_attr = dsdb_attribute_by_linkID(schema, schema_attr->linkID ^ 1);
if (!target_attr) {
/*
}
}
}
-
+
if (!partition_ctrl) {
ldb_set_errstring(ldb_module_get_ctx(ac->module),"No partition control on reply");
return ldb_module_done(ac->req, NULL,
talloc_free(tmp_ctx);
return LDB_ERR_OPERATIONS_ERROR;
}
-
+
ret = get_parsed_dns(module, tmp_ctx, el, &pdn,
sa->syntax->ldap_oid, parent);
if (ret != LDB_SUCCESS) {
struct replPropertyMetaDataBlob nmd;
struct ldb_val nmd_value;
struct ldb_dn *extended_dn = NULL;
-
+
/*
* The use of a time_t here seems odd, but as the NTTIME
* elements are actually declared as NTTIME_1sec in the IDL,
} else {
/* a new GUID */
guid = GUID_random();
-
+
guid_blob_stack = data_blob_const(guid_data, sizeof(guid_data));
-
+
/* This can't fail */
ndr_push_struct_into_fixed_blob(&guid_blob_stack, &guid,
(ndr_push_flags_fn_t)ndr_push_GUID);
talloc_free(ac);
return ret;
}
- }
+ }
/*
* Prepare the context for the backlinks and
ret = replmd_add_backlink(module, replmd_private,
ac->schema,
msg_dn,
- &dns[i].guid,
+ &dns[i].guid,
true,
schema_attr,
parent);
.data = discard_const_p(uint8_t, "TRUE"),
.length = 4
};
-
+
unsigned int i;
uint32_t dsdb_flags = 0;
struct replmd_private *replmd_private;
&guid_txt),
ldb_dn_get_linearized(msg->dn)));
}
-
+
local_isDeleted = ldb_msg_find_attr_as_bool(ar->search_msg,
"isDeleted", false);
remote_isDeleted = ldb_msg_find_attr_as_bool(msg,
missing_str, ldb_dn_get_linearized(target_dn),
ldb_dn_get_linearized(source_dn));
}
-
+
return LDB_SUCCESS;
}
if (!(rmd_flags & DSDB_RMD_FLAG_DELETED)) {
/* remove the existing backlink */
ret = replmd_add_backlink(module, replmd_private,
- schema,
+ schema,
src_dn,
&pdn->guid, false, attr,
parent);