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

r26565: Fix python registry bindings. 'PROVISION_PYTHON=yes make test' works now.

(This used to be commit 485d1fa3d1)
This commit is contained in:
Jelmer Vernooij
2007-12-22 05:03:02 -06:00
committed by Stefan Metzmacher
parent 09f820f0bd
commit 249cc734ce
11 changed files with 243 additions and 18 deletions

View File

@ -281,12 +281,12 @@ def setup_templatesdb(path, setup_path, session_info, credentials, lp):
def setup_registry(path, setup_path, session_info, credentials, lp):
reg = registry.Registry()
hive = registry.Hive(path, session_info=session_info,
hive = registry.open_ldb(path, session_info=session_info,
credentials=credentials, lp_ctx=lp)
reg.mount_hive(hive, "HKEY_LOCAL_MACHINE")
provision_reg = setup_path("provision.reg")
assert os.path.exists(provision_reg)
reg.apply_patchfile(provision_reg)
reg.diff_apply(provision_reg)
def setup_samdb_rootdse(samdb, setup_path, schemadn, domaindn, hostname,