1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-05 04:59:08 +03:00

r26505: Add python bindings for some samdb-related functions, improve provisioning in python.

(This used to be commit d240225166)
This commit is contained in:
Jelmer Vernooij
2007-12-17 12:07:51 +01:00
committed by Stefan Metzmacher
parent c260454229
commit f89c7a6e5e
8 changed files with 228 additions and 32 deletions

View File

@ -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)