summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-02 14:01:35 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-02-02 15:21:13 +1100
commit2e865bed0aa6d28d2543ca6ad0a9c3d73c7db53f (patch)
tree79be74f5eeef0837d25f46f4dbadbfb265561ab3 /source4/dsdb/samdb
parente830cb48396b6b480794c5d982f0f75f025e8c14 (diff)
downloadsamba-2e865bed0aa6d28d2543ca6ad0a9c3d73c7db53f.tar.gz
samba-2e865bed0aa6d28d2543ca6ad0a9c3d73c7db53f.tar.bz2
samba-2e865bed0aa6d28d2543ca6ad0a9c3d73c7db53f.zip
s4-dsdb Fix generation of rootDSE domainControllerFunctionality
The issue here is that when the samdb calls were removed, this call relied on going back to the top of the module stack, so as to re-enter the rootDSE search handler. It makes more sense to check the @ROOTDSE record directly, and therefore not to invoke the search() handler during the init. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 007af57d54..c5486b539b 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -846,8 +846,10 @@ static int rootdse_init(struct ldb_module *module)
}
}
+ /* For now, our own server's location in the DB is recorded in
+ * the @ROOTDSE record */
ret = dsdb_module_search(module, mem_ctx, &res,
- ldb_dn_new(mem_ctx, ldb, ""),
+ ldb_dn_new(mem_ctx, ldb, "@ROOTDSE"),
LDB_SCOPE_BASE, ds_attrs, DSDB_FLAG_NEXT_MODULE, NULL, NULL);
if (ret == LDB_SUCCESS && res->count == 1) {
struct ldb_dn *ds_dn