summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-27 19:38:04 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-27 19:40:21 +1000
commit160c197b8456ef5cd70c8297d8a7efc3dca178ec (patch)
tree7360c9ae4811d53ebeedd5101c75a7a0d102a261 /source4/scripting/python/samba
parent6c55518d471950d8ebaf0df47634116802d6f735 (diff)
downloadsamba-160c197b8456ef5cd70c8297d8a7efc3dca178ec.tar.gz
samba-160c197b8456ef5cd70c8297d8a7efc3dca178ec.tar.bz2
samba-160c197b8456ef5cd70c8297d8a7efc3dca178ec.zip
s4:python Add helper to get at the domain SID
Diffstat (limited to 'source4/scripting/python/samba')
-rw-r--r--source4/scripting/python/samba/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index 4df3d6f55a..720a015c63 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -233,6 +233,12 @@ class Ldb(ldb.Ldb):
"""
glue.samdb_set_domain_sid(self, sid)
+ def domain_sid(self):
+ """Read the domain SID used by this LDB.
+
+ """
+ glue.samdb_get_domain_sid(self)
+
def set_schema_from_ldif(self, pf, df):
glue.dsdb_set_schema_from_ldif(self, pf, df)