diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-11 15:42:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:06:25 -0500 |
commit | ed2a1c718ae4fb56fdfe73da6f63ddb7fb15d9fd (patch) | |
tree | d583b466f1e3fdfe309d4e19077e2cc7deb6a862 /source4/lib/db_wrap.c | |
parent | c44019e1e3d804f577e6432e191fb3d3e93a8f02 (diff) | |
download | samba-ed2a1c718ae4fb56fdfe73da6f63ddb7fb15d9fd.tar.gz samba-ed2a1c718ae4fb56fdfe73da6f63ddb7fb15d9fd.tar.bz2 samba-ed2a1c718ae4fb56fdfe73da6f63ddb7fb15d9fd.zip |
r25081: Add modules_dir member to ldb_context that is used rather than a global
modulesdir setting. Samba always sets this to lp_modulesdir()/ldb
(This used to be commit e672380d2156cf0421108a9c34f04f096c2afeed)
Diffstat (limited to 'source4/lib/db_wrap.c')
-rw-r--r-- | source4/lib/db_wrap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c index 3a8d048221..ad797fe6a0 100644 --- a/source4/lib/db_wrap.c +++ b/source4/lib/db_wrap.c @@ -120,6 +120,9 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx, return NULL; } + ldb_set_modules_dir(ldb, + talloc_asprintf(ldb, "%s/ldb", lp_modulesdir())); + /* we want to use the existing event context if possible. This relies on the fact that in smbd, everything is a child of the main event_context */ |