diff options
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 6f3953540a..8a12c9746a 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -48,6 +48,8 @@ class SamDB(samba.Ldb): elif url is None and lp is not None: url = lp.samdb_url() + self.url = url + super(SamDB, self).__init__(url=url, lp=lp, modules_dir=modules_dir, session_info=session_info, credentials=credentials, flags=flags, options=options) @@ -61,6 +63,7 @@ class SamDB(samba.Ldb): def connect(self, url=None, flags=0, options=None): if self.lp is not None: url = self.lp.private_path(url) + self.url = url super(SamDB, self).connect(url=url, flags=flags, options=options) |