diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-07-18 18:39:20 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-07-18 18:39:20 +0200 |
commit | 7883897b8d4e5993e636d3cde8bad509ee272fcb (patch) | |
tree | f281bc707093d68ee50c90caa9d41d7c04872a06 | |
parent | d884fcf9a0e52c6ea6707c57c30f0e3dfea9a345 (diff) | |
download | samba-7883897b8d4e5993e636d3cde8bad509ee272fcb.tar.gz samba-7883897b8d4e5993e636d3cde8bad509ee272fcb.tar.bz2 samba-7883897b8d4e5993e636d3cde8bad509ee272fcb.zip |
python: Set right ldb modules directory when using system ldb.
-rw-r--r-- | source4/scripting/python/samba/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index e3ebc4a637..131d1a3ac6 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -73,6 +73,8 @@ class Ldb(ldb.Ldb): self.set_modules_dir(modules_dir) elif default_ldb_modules_dir is not None: self.set_modules_dir(default_ldb_modules_dir) + elif lp is not None: + self.set_modules_dir(os.path.join(lp.get("modules dir"), "ldb")) if credentials is not None: self.set_credentials(credentials) |