diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-03-20 16:25:01 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-03-20 16:28:41 +1100 |
commit | 6906c01cac226db508cd56a31b751eee3ac62bc9 (patch) | |
tree | e360376b212dd7b30e25abda828c37d999d6efde /source4/scripting/python | |
parent | 1dc5b90e86fdee2978f5608f483c3b11c86fb9bc (diff) | |
download | samba-6906c01cac226db508cd56a31b751eee3ac62bc9.tar.gz samba-6906c01cac226db508cd56a31b751eee3ac62bc9.tar.bz2 samba-6906c01cac226db508cd56a31b751eee3ac62bc9.zip |
s4:ldb Ensure to pass down options to LDB from python
This is needed for things such as to load modules, like the
paged_searches module.
Andrew Bartlett
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index a49e6e1ead..c5827b96e0 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -54,7 +54,7 @@ class Ldb(ldb.Ldb): functions see samdb.py. """ def __init__(self, url=None, session_info=None, credentials=None, - modules_dir=None, lp=None): + modules_dir=None, lp=None, options=None): """Open a Samba Ldb file. :param url: Optional LDB URL to open @@ -67,7 +67,7 @@ class Ldb(ldb.Ldb): modules-dir is used by default and that credentials and session_info can be passed through (required by some modules). """ - super(Ldb, self).__init__() + super(Ldb, self).__init__(options=options) if modules_dir is not None: self.set_modules_dir(modules_dir) @@ -90,7 +90,7 @@ class Ldb(ldb.Ldb): #self.set_debug(msg) if url is not None: - self.connect(url) + self.connect(url, options=options) def set_credentials(self, credentials): glue.ldb_set_credentials(self, credentials) |