diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 12:07:51 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:51:09 +0100 |
commit | f89c7a6e5eb082794d64b487e69fc442d138ca28 (patch) | |
tree | 3e53b034b4a3424d3c56c07797f33c478004fe75 /source4/scripting/python/samba/samdb.py | |
parent | c2604542295d5665172019da829544202ff034d6 (diff) | |
download | samba-f89c7a6e5eb082794d64b487e69fc442d138ca28.tar.gz |
r26505: Add python bindings for some samdb-related functions, improve provisioning in python.
(This used to be commit d2402251666738c0372bbbaeaa1d26c06e254033)
Diffstat (limited to 'source4/scripting/python/samba/samdb.py')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 50164bf5901..73426121a64 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -21,6 +21,7 @@ # import samba +import misc class SamDB(samba.Ldb): def add_foreign(self, domaindn, sid, desc): @@ -114,4 +115,8 @@ member: %s enable_account(self, user_dn) self.transaction_commit() + def set_domain_sid(self, sid): + misc.samdb_set_domain_sid(self, sid) + def attach_schema_from_ldif(self, pf, df): + misc.dsdb_attach_schema_from_ldif_file(self, pf, df) |