diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-03 11:31:45 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-04 16:17:25 +1000 |
commit | 2331610a2e33498527070c45debfea418a97717d (patch) | |
tree | 365bd3ef4bea0b20f549a024dabd80ba995bfbb9 /source4 | |
parent | 37799b0644af6d0135af52f07414efd52bbe697e (diff) | |
download | samba-2331610a2e33498527070c45debfea418a97717d.tar.gz samba-2331610a2e33498527070c45debfea418a97717d.tar.bz2 samba-2331610a2e33498527070c45debfea418a97717d.zip |
s4-samdb: save the url in the samdb class
this is useful for debugging, so we know which database we are dealing
with
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'source4')
-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) |