summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-08-25 12:59:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:46 -0500
commit88b04ab6e65137079b2dad76d1cea07e7ea9ab80 (patch)
tree7357d0b7a7b602cb5f6fd508bffbe47592d2d270 /source4/dsdb
parentfd4e294c41a568c9f7d196361bb19fdeab3f4fde (diff)
downloadsamba-88b04ab6e65137079b2dad76d1cea07e7ea9ab80.tar.gz
samba-88b04ab6e65137079b2dad76d1cea07e7ea9ab80.tar.bz2
samba-88b04ab6e65137079b2dad76d1cea07e7ea9ab80.zip
r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded. Introduce a function to retrieve the value where needed. (This used to be commit 0caf6a44e03393c645030a9288e7dfd31e97c98b)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c2
-rw-r--r--source4/dsdb/samdb/samdb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index e8b9307cf5..2fcfdff997 100644
--- a/source4/dsdb/samdb/ldb_modules/password_hash.c
+++ b/source4/dsdb/samdb/ldb_modules/password_hash.c
@@ -489,7 +489,7 @@ static int build_domain_data_request(struct ph_context *ac)
return LDB_ERR_OPERATIONS_ERROR;
}
ac->dom_req->operation = LDB_SEARCH;
- ac->dom_req->op.search.base = ldb_auto_basedn(ac->module->ldb);
+ ac->dom_req->op.search.base = ldb_get_default_basedn(ac->module->ldb);
ac->dom_req->op.search.scope = LDB_SCOPE_SUBTREE;
filter = talloc_asprintf(ac->dom_req, "(&(objectSid=%s)(|(objectClass=domain)(objectClass=builtinDomain)))",
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index dd671e6a2b..e57a9b1aa2 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -1026,7 +1026,7 @@ struct security_descriptor *samdb_default_security_descriptor(TALLOC_CTX *mem_ct
const struct ldb_dn *samdb_base_dn(struct ldb_context *sam_ctx)
{
- return ldb_auto_basedn(sam_ctx);
+ return ldb_get_default_basedn(sam_ctx);
}