diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-10-10 16:56:55 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-10-10 23:08:45 +0200 |
commit | 6280725b47391c69dd7db1133c15bd0ce7418da6 (patch) | |
tree | 3b88438a48aded9cca475c557634a695b59f2121 /source4/lib/ldb-samba/ldb_wrap.c | |
parent | 614c8ea98650405b461a6ce034ee5e5acc45a952 (diff) | |
download | samba-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/lib/ldb-samba/ldb_wrap.c')
-rw-r--r-- | source4/lib/ldb-samba/ldb_wrap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source4/lib/ldb-samba/ldb_wrap.c b/source4/lib/ldb-samba/ldb_wrap.c index ebc1818c76..7cf9128e96 100644 --- a/source4/lib/ldb-samba/ldb_wrap.c +++ b/source4/lib/ldb-samba/ldb_wrap.c @@ -61,7 +61,7 @@ static void ldb_wrap_debug(void *context, enum ldb_debug_level level, case LDB_DEBUG_TRACE: samba_level = 5; break; - + }; vasprintf(&s, fmt, ap); if (!s) return; @@ -117,6 +117,7 @@ static int ldb_wrap_destructor(struct ldb_wrap *w) return 0; } + /* wrapped connection to a ldb database to close just talloc_free() the returned ldb_context @@ -267,14 +268,6 @@ static int ldb_wrap_destructor(struct ldb_wrap *w) DLIST_ADD(ldb_wrap_list, w); - /* make the resulting schema global */ - if (lp_ctx != NULL && strcmp(lpcfg_sam_url(lp_ctx), url) == 0) { - struct dsdb_schema *schema = dsdb_get_schema(ldb, NULL); - if (schema) { - dsdb_make_schema_global(ldb, schema); - } - } - DEBUG(3,("ldb_wrap open of %s\n", url)); talloc_set_destructor(w, ldb_wrap_destructor); |