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

@ -433,10 +433,8 @@ def provision(lp, setup_dir, subobj, message, blank, paths, session_info,
message("Pre-loading the Samba 4 and AD schema")
samdb = open_ldb(session_info, credentials, paths.samdb)
samdb = SamDB(paths.samdb, session_info, credentials)
samdb.set_domain_sid(subobj.domainsid)
load_schema(setup_dir, subobj, samdb)
samdb.transaction_start()
@ -650,7 +648,7 @@ def load_schema(setup_dir, subobj, samdb):
src = os.path.join(setup_dir, "provision_schema_basedn_modify.ldif")
head_data = open(src, 'r').read()
head_data = substitute_var(head_data, subobj.subst_vars())
samdb.attach_dsdb_schema_from_ldif(head_data, schema_data)
samdb.attach_schema_from_ldif(head_data, schema_data)
def join_domain(domain, netbios_name, join_type, creds, message):