summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-10 16:56:55 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-10 23:08:45 +0200
commit6280725b47391c69dd7db1133c15bd0ce7418da6 (patch)
tree3b88438a48aded9cca475c557634a695b59f2121 /source4/dsdb
parent614c8ea98650405b461a6ce034ee5e5acc45a952 (diff)
downloadsamba-6280725b47391c69dd7db1133c15bd0ce7418da6.tar.gz
samba-6280725b47391c69dd7db1133c15bd0ce7418da6.tar.bz2
samba-6280725b47391c69dd7db1133c15bd0ce7418da6.zip
samdb: Handle schema setup in samdb, not in more generic ldbsamba.
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/samdb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index 637da4fcf2..081ee7e2ee 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -126,13 +126,22 @@ struct ldb_context *samdb_connect(TALLOC_CTX *mem_ctx,
struct auth_session_info *session_info)
{
struct ldb_context *ldb;
+ struct dsdb_schema *schema;
ldb = ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx,
lpcfg_sam_url(lp_ctx), session_info,
samdb_credentials(ev_ctx, lp_ctx),
0);
+
if (!ldb) {
return NULL;
}
+
+ schema = dsdb_get_schema(ldb, NULL);
+ /* make the resulting schema global */
+ if (schema) {
+ dsdb_make_schema_global(ldb, schema);
+ }
+
return ldb;
}