README
1This is the registry library. The registry is basically a bunch of
2hives, each of which is loaded from a file. When using a local registry,
3it is possible to specify where hives should be loaded from, etc.
4
5There are separate APIs for accessing the data in a hive and the
6data in the registry itself. Each supports different backends.
7
8The following "full registry" backends are currently provided:
9
10 * Remote (over DCE/RPC)
11 * Local (allows "mounting" hives)
12 * Wine (uses the wine plain-text file)
13
14The following hive backends are supported:
15
16 - ldb
17 - regf (NTUSER.DAT-style files)
18 - rpc (Remote individual hives)
19 - directory
20
21reg_open_samba() loads a set of hives based on smb.conf settings.
22Lines in smb.conf should have the following syntax:
23
24registry:<hivename> = <backend>:<location>
25
26So an example usage could be:
27
28registry:HKEY_CURRENT_USER = regf:NTUSER.DAT
29registry:HKEY_LOCAL_MACHINE = ldb:tdb://registry.tdb
30
31WERR_NOT_SUPPORTED will be returned for all hives that haven't been set.
32
33On Windows the various registry hives are loaded from:
34
35HKEY_CURRENT_CONFIG: %SystemRoot%\System32\Config\System
36HKEY_CURRENT_USER: %Profile%\NTUser.dat
37HKEY_LOCAL_MACHINE\SAM: %SystemRoot%\System32\Config\Sam
38HKEY_LOCAL_MACHINE\Security: %SystemRoot%\System32\Config\Security
39HKEY_LOCAL_MACHINE\Software: %SystemRoot%\System32\Config\Software
40HKEY_LOCAL_MACHINE\System: %SystemRoot%\System32\Config\System
41HKEY_USERS\.DEFAULT: %SystemRoot%\System32\Config\Default
42HKEY_LOCAL_MACHINE\HARDWARE: is autogenerated
43