diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-10-02 11:22:33 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-10-02 12:20:58 +0200 |
commit | 81b3358f2a61c38ddd9d10accea8a4fe432f3085 (patch) | |
tree | 16575fc16d5ff481619f95a4fdd8148b0f36c728 /source4/dsdb | |
parent | 551bbd853c87002fe068b5fb2a044c424ab7e874 (diff) | |
download | samba-81b3358f2a61c38ddd9d10accea8a4fe432f3085.tar.gz samba-81b3358f2a61c38ddd9d10accea8a4fe432f3085.tar.bz2 samba-81b3358f2a61c38ddd9d10accea8a4fe432f3085.zip |
s4:partition: register DOMAIN_SCOPE and SEARCH_OPTIONS controls
metze
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index ad3518e6b2..f600c72748 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -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); } |