mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.
Andrew Bartlett (This used to be commit f3390c9054244c0e4381007b36bbac9a17800570)
This commit is contained in:
parent
d7b8a4ab24
commit
47f6988c6d
@ -280,8 +280,8 @@ static int rootdse_search(struct ldb_module *module, struct ldb_request *req)
|
||||
}
|
||||
|
||||
down_req->operation = req->operation;
|
||||
/* in our db we store the rootDSE with a DN of cn=rootDSE */
|
||||
down_req->op.search.base = ldb_dn_new(down_req, module->ldb, "cn=rootDSE");
|
||||
/* in our db we store the rootDSE with a DN of @ROOTDSE */
|
||||
down_req->op.search.base = ldb_dn_new(down_req, module->ldb, "@ROOTDSE");
|
||||
down_req->op.search.scope = LDB_SCOPE_BASE;
|
||||
down_req->op.search.tree = ldb_parse_tree(down_req, NULL);
|
||||
if (down_req->op.search.base == NULL || down_req->op.search.tree == NULL) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
# the rootDSE module looks in this record for its base data
|
||||
dn: cn=ROOTDSE
|
||||
dn: @ROOTDSE
|
||||
subschemaSubentry: CN=Aggregate,${SCHEMADN}
|
||||
dsServiceName: CN=NTDS Settings,CN=${NETBIOSNAME},CN=Servers,CN=${DEFAULTSITE},CN=Sites,${CONFIGDN}
|
||||
defaultNamingContext: ${DOMAINDN}
|
||||
|
@ -1,5 +1,5 @@
|
||||
# mark the database as syncronized
|
||||
dn: cn=ROOTDSE
|
||||
dn: @ROOTDSE
|
||||
changetype: modify
|
||||
replace: isSynchronized
|
||||
isSynchronized: TRUE
|
||||
|
@ -786,9 +786,9 @@ bool torture_net_become_dc(struct torture_context *torture)
|
||||
ret = false;
|
||||
goto cleanup;
|
||||
}
|
||||
msg->dn = ldb_dn_new(msg, s->ldb, "cn=ROOTDSE");
|
||||
msg->dn = ldb_dn_new(msg, s->ldb, "@ROOTDSE");
|
||||
if (!msg->dn) {
|
||||
printf("ldb_msg_new(cn=ROOTDSE) failed\n");
|
||||
printf("ldb_msg_new(@ROOTDSE) failed\n");
|
||||
ret = false;
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ function setup_modules(ldb)
|
||||
dn: @MODULES
|
||||
@LIST: rootdse,operational,rdn_name,partition
|
||||
|
||||
dn: cn=ROOTDSE
|
||||
dn: @ROOTDSE
|
||||
defaultNamingContext: cn=Test
|
||||
|
||||
dn: @PARTITION
|
||||
|
Loading…
x
Reference in New Issue
Block a user