diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-26 04:22:42 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-26 04:22:42 +0100 |
commit | cab677a33f0376cd1bf96ec561dc0463bbf80edd (patch) | |
tree | 8efaf6b885543a006a91294923324fc580d01bbf /source4/scripting | |
parent | 172e00d8a174646e4e1279e66805c24eeac00c40 (diff) | |
download | samba-cab677a33f0376cd1bf96ec561dc0463bbf80edd.tar.gz samba-cab677a33f0376cd1bf96ec561dc0463bbf80edd.tar.bz2 samba-cab677a33f0376cd1bf96ec561dc0463bbf80edd.zip |
python: Use relative paths for registry.
(This used to be commit 079200b824de6dd8c7de3e5b76ed1805fde02965)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index f244679eb5..d2a4f28b64 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -203,7 +203,13 @@ def provision_paths_from_lp(lp, dnsdomain, private_dir=None): paths.s4_ldapi_path = os.path.join(private_dir, "ldapi") paths.phpldapadminconfig = os.path.join(private_dir, "phpldapadmin-config.php") - paths.hklm = os.path.join(private_dir, "hklm.ldb") + paths.hklm = "hklm.ldb" + paths.hkcr = "hkcr.ldb" + paths.hkcu = "hkcu.ldb" + paths.hku = "hku.ldb" + paths.hkpd = "hkpd.ldb" + paths.hkpt = "hkpt.ldb" + paths.sysvol = lp.get("sysvol", "path") if paths.sysvol is None: paths.sysvol = os.path.join(lp.get("lock dir"), "sysvol") @@ -442,6 +448,7 @@ def setup_registry(path, setup_path, session_info, credentials, lp): :param lp: Loadparm context """ reg = registry.Registry() + print path hive = registry.open_ldb(path, session_info=session_info, credentials=credentials, lp_ctx=lp) reg.mount_hive(hive, "HKEY_LOCAL_MACHINE") |