From 160c197b8456ef5cd70c8297d8a7efc3dca178ec Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 27 Aug 2009 19:38:04 +1000 Subject: s4:python Add helper to get at the domain SID --- source4/scripting/python/samba/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/scripting/python/samba') 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) -- cgit