mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s4:partition: register DOMAIN_SCOPE and SEARCH_OPTIONS controls
metze
This commit is contained in:
parent
551bbd853c
commit
81b3358f2a
@ -1160,6 +1160,20 @@ static int partition_init(struct ldb_module *module)
|
||||
}
|
||||
}
|
||||
|
||||
ret = ldb_mod_register_control(module, LDB_CONTROL_DOMAIN_SCOPE_OID);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
ldb_debug(module->ldb, LDB_DEBUG_ERROR,
|
||||
"partition: Unable to register control with rootdse!\n");
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
|
||||
ret = ldb_mod_register_control(module, LDB_CONTROL_SEARCH_OPTIONS_OID);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
ldb_debug(module->ldb, LDB_DEBUG_ERROR,
|
||||
"partition: Unable to register control with rootdse!\n");
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
|
||||
talloc_free(mem_ctx);
|
||||
return ldb_next_init(module);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user