*/
static int construct_canonical_name(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
char *canonicalName;
canonicalName = ldb_dn_canonical_string(msg, msg->dn);
*/
static int construct_primary_group_token(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
struct ldb_context *ldb;
uint32_t primary_group_token;
static int construct_token_groups(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
/**
* TODO: Add in a limiting domain when we start to support
static int construct_token_groups_no_gc(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
/**
* TODO: Add in a limiting domain when we start to support
static int construct_global_universal_token_groups(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
return construct_generic_token_groups(module, msg, scope, parent,
"tokenGroupsGlobalAndUniversal",
*/
static int construct_parent_guid(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
struct ldb_result *res, *parent_res;
const struct ldb_val *parent_guid;
static int construct_modifyTimeStamp(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
struct operational_data *data = talloc_get_type(ldb_module_get_private(module), struct operational_data);
struct ldb_context *ldb = ldb_module_get_ctx(module);
*/
static int construct_subschema_subentry(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
struct operational_data *data = talloc_get_type(ldb_module_get_private(module), struct operational_data);
char *subSchemaSubEntry;
*/
static int construct_msds_isrodc(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
struct ldb_message_element * object_class;
struct ldb_message_element * object_category;
static int construct_msds_keyversionnumber(struct ldb_module *module,
struct ldb_message *msg,
enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent,
+ struct ldb_reply *ares)
{
uint32_t i;
enum ndr_err_code ndr_err;
*/
static int construct_msds_user_account_control_computed(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
uint32_t userAccountControl;
uint32_t msDS_User_Account_Control_Computed = 0;
*/
static int construct_msds_user_password_expiry_time_computed(struct ldb_module *module,
struct ldb_message *msg, enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent, struct ldb_reply *ares)
{
struct ldb_context *ldb = ldb_module_get_ctx(module);
struct ldb_dn *nc_root;
static int construct_resultant_pso(struct ldb_module *module,
struct ldb_message *msg,
enum ldb_scope scope,
- struct ldb_request *parent)
+ struct ldb_request *parent,
+ struct ldb_reply *ares)
{
struct ldb_message *pso = NULL;
int ret;
const char *attr;
const char *replace;
const char * const *extra_attrs;
- int (*constructor)(struct ldb_module *, struct ldb_message *, enum ldb_scope, struct ldb_request *);
+ int (*constructor)(struct ldb_module *, struct ldb_message *, enum ldb_scope, struct ldb_request *, struct ldb_reply *);
};
/* the 'extra_attrs' required for msDS-ResultantPSO */
unsigned int list_size,
struct op_attributes_replace *list_replace,
unsigned int list_replace_size,
- struct ldb_request *parent)
+ struct ldb_request *parent,
+ struct ldb_reply *ares)
{
struct ldb_context *ldb;
unsigned int i, a = 0;
constructor or a simple copy */
constructed_attributes = true;
if (list_replace[a].constructor != NULL) {
- if (list_replace[a].constructor(module, msg, scope, parent) != LDB_SUCCESS) {
+ if (list_replace[a].constructor(module, msg, scope, parent, ares) != LDB_SUCCESS) {
goto failed;
}
} else if (ldb_msg_copy_attr(msg,
ac->list_operations_size,
ac->attrs_to_replace,
ac->attrs_to_replace_size,
- req);
+ req,
+ ares);
if (ret != 0) {
return ldb_module_done(ac->req, NULL, NULL,
LDB_ERR_OPERATIONS_ERROR);