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:
committed by
Stefan Metzmacher
parent
c260454229
commit
f89c7a6e5e
@ -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)
|
||||
|
Reference in New Issue
Block a user