From 7883897b8d4e5993e636d3cde8bad509ee272fcb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 18 Jul 2009 18:39:20 +0200 Subject: python: Set right ldb modules directory when using system ldb. --- source4/scripting/python/samba/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/scripting/python') 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) -- cgit