git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:python Add helper to get at the domain SID
[samba.git]
/
source4
/
scripting
/
python
/
samba
/
__init__.py
diff --git
a/source4/scripting/python/samba/__init__.py
b/source4/scripting/python/samba/__init__.py
index 4df3d6f55a26d6fd970f6928fdbb105de96b956d..720a015c63488ad0065eca0e11fa1b9e85065e7a 100644
(file)
--- 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)