1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

277 Commits

Author SHA1 Message Date
Michael Adam
9af84dd382 Rename registry_init_regdb() to registry_init_smbconf().
That's what it actually is.

Michael
(This used to be commit 9d3c27f557)
2008-02-15 16:23:10 +01:00
Volker Lendecke
6d387037b1 Fix Coverity IDs 451, 452
(This used to be commit d28a537277)
2008-01-25 20:55:51 +01:00
Michael Adam
99dfd66488 Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.c
This actually is a counterpart to reg_init_full, in that is does
open and initialize the registry too, but only registeres the backends
necessary to access the SMBCONF key.

Michael
(This used to be commit 01bda3ab35)
2008-01-21 08:49:12 +01:00
Michael Adam
1b4dfc2e7d Move reg_frontend_hilvl.c to reg_dispatcher.c
This is actually the dispatcher to the registered registry backends.

Michael
(This used to be commit 39d65d11f8)
2008-01-21 08:49:12 +01:00
Michael Adam
42641d6321 Extend/fix comments.
Michael
(This used to be commit 4952417fca)
2008-01-21 08:49:12 +01:00
Michael Adam
99186bf726 Extract regkey_open_internal() from reg_frontend.c to new reg_util_legacy.c
reg_openpath should be used instead of this function (along with the
reg_api interface). Last callers of this function are in services_db.c

Michael
(This used to be commit 0005b88d74)
2008-01-21 08:49:12 +01:00
Michael Adam
b5666ceefb Rename reg_db.c to reg_backend_db.c
Michael
(This used to be commit c3f695d3b1)
2008-01-21 08:49:12 +01:00
Michael Adam
e7520f3ad8 Rename reg_shares.c to reg_backend_shares.c
Michael
(This used to be commit aaf33ae5b8)
2008-01-21 08:49:12 +01:00
Michael Adam
4ccee0dc0c Rename reg_smbconf.c to reg_backend_smbconf.c
Michael
(This used to be commit b85e5ee450)
2008-01-21 08:49:12 +01:00
Michael Adam
1e68e24c8e Rename reg_printing.c to reg_backend_printing.c
Start making naming of source files more systematic
to facilitate understanding of the structures.

Michael
(This used to be commit b3c2fb17a4)
2008-01-21 08:49:12 +01:00
Volker Lendecke
33f3eeaa00 Fix some "set but never used" warnings
(This used to be commit 4a6dadc517)
2008-01-20 17:44:40 +01:00
Michael Adam
6c5a831e96 Add a debug message to fetch_reg_values().
Michael
(This used to be commit 239aa59cc1)
2008-01-20 03:54:56 +01:00
Michael Adam
7745674f0c Add some debugging output to reg_cachehook.c
Michael
(This used to be commit 2a27892880)
2008-01-20 03:54:56 +01:00
Michael Adam
e45dacce89 Remove the dynamic registry overlay.
It is unnecessary now the dynamic functions have been made
registry backends of their own.

Michael
(This used to be commit e327953bd6)
2008-01-20 03:47:37 +01:00
Michael Adam
c16b74cc86 Add a registry backend perflib that replaces the former dynamic overlay.
Michael
(This used to be commit c3fba41595)
2008-01-20 03:47:37 +01:00
Michael Adam
c4b65647ca Some reformatting of current_version_fetch_values().
Michael
(This used to be commit d2e3814db8)
2008-01-20 03:47:37 +01:00
Michael Adam
2925d83573 Add a registry backend current_version that replaces the former dynamic overlay.
Make sure to only respond to the exact current version key since subkeys
are registered by other backends (printing and - soon - perflib).

Michael
(This used to be commit 2c650bf63c)
2008-01-20 03:47:36 +01:00
Michael Adam
25c21fb562 Use some consts instead of literal strings for registry keys.
Michael
(This used to be commit 80024f4e1c)
2008-01-20 02:03:41 +01:00
Michael Adam
8eed06fb8c Some reformatting in hkpt_params_fetch_values().
Michael
(This used to be commit f245c4e094)
2008-01-20 02:03:40 +01:00
Michael Adam
949a88ee2f Add a registry backend hkpt_params that replaces the former dynamic overlay.
Michael
(This used to be commit 8e8bb6ba12)
2008-01-20 02:03:40 +01:00
Michael Adam
b4e3c75272 Some reformatting in tcpip_params_fetch_values().
Michael
(This used to be commit 5b3813b233)
2008-01-20 02:03:40 +01:00
Michael Adam
c5a5b404b4 Add a registry backend tcpip_params that replaces the former dynamic overlay.
Michael
(This used to be commit a8a743b693)
2008-01-20 02:03:40 +01:00
Michael Adam
f383b853f5 Some reformatting in prod_options_fetch_values().
Michael
(This used to be commit 347b988654)
2008-01-20 02:03:39 +01:00
Michael Adam
663815ec2b Add a registry backend prod_options that replaces the former dynamic overlay.
Michael
(This used to be commit d9b89e9d30)
2008-01-20 02:03:39 +01:00
Michael Adam
d48c5f1599 Some reformatting in netlogon_params_fetch_values().
Michael
(This used to be commit 24f13fb72e)
2008-01-20 02:03:39 +01:00
Michael Adam
2e47997e6e Rename netlogon_params_fetch_reg_values() to netlogon_params_fetch_values().
Michael
(This used to be commit 54e7c80985)
2008-01-20 02:03:39 +01:00
Michael Adam
c8a0b2a3a2 In reg_backend_netlogon_params, delegate fetch_subkeys() to regdb.
In order to be able to open the netlogon_params key (the new backend replacing
the former dynamic overlay), certain methods need to be provided. Delegate these
to the regdb backend (like e.g. the smbconf backend does).

Michael
(This used to be commit 9261b2c4bf)
2008-01-20 02:03:38 +01:00
Michael Adam
1b2dd2dcc8 Fix registering Registry backends in reghook_cache_add().
This was broken in 331c0d6216
(pstring removal).

Michael
(This used to be commit 7d1e986f3a)
2008-01-20 02:03:38 +01:00
Michael Adam
563c4ef740 Use constant KEY_NETLOGON_PARAMS instead of literal key.
Michael
(This used to be commit daf37c9545)
2008-01-20 02:03:38 +01:00
Michael Adam
139340f570 Volker is right: why keep commented out migrated dynamic reg overlays around?...
Michael
(This used to be commit a73b8d16aa)
2008-01-20 02:03:38 +01:00
Michael Adam
cb1e0de56f Use c99 struct initializers for REGISTRY_OPS in reg_shares.c
Michael
(This used to be commit 2c4dfd7aaa)
2008-01-20 02:03:38 +01:00
Michael Adam
15015b7490 Use c99 struct initializers for REGISTRY_OPS in reg_printing.c
Michael
(This used to be commit a89bee4139)
2008-01-20 02:03:37 +01:00
Michael Adam
29af710d6a Use c99 struct initializers for REGISTRY_OPS in reg_smbconf.c.
Michael
(This used to be commit 96d116b003)
2008-01-20 02:03:37 +01:00
Michael Adam
27d9ac3219 Use C99 structure initializers for netlogon_params_reg_ops.
Michael
(This used to be commit f3901f179b)
2008-01-18 12:07:04 +01:00
Michael Adam
60fbc7e4f0 Add a registry backend netlogon_params that replaces the former dynamic overlay.
This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.

Michael
(This used to be commit e8a0524961)
2008-01-18 09:40:57 +01:00
Michael Adam
1ea809383e Fix typo in debug message.
Michael
(This used to be commit d7a8d7ffbd)
2008-01-18 09:40:57 +01:00
Michael Adam
32a8e74078 Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
Michael
(This used to be commit 903223b160)
2008-01-17 16:25:11 +01:00
Michael Adam
7f8e4bc68e Add my (C) to reg_api.c - Michael
(This used to be commit 81d6a1fbed)
2008-01-17 16:25:11 +01:00
Michael Adam
138f7ec451 Add a comment header comparing winreg.idl and reg_api.c.
Michael
(This used to be commit 15163926a8)
2008-01-17 16:25:11 +01:00
Michael Adam
da4ecfc0fa Add reg_api functions reg_getkeysecurity() and reg_setkeysecurity().
These are wrappers around the lower level functions regkey_get_secdesc()
and regkey_set_secdesc(). Next step towards hiding reg_frontend from
the surface.

Michael
(This used to be commit 7251a24b48)
2008-01-17 16:25:11 +01:00
Michael Adam
fcb47f5ea9 Comment out unused reg_create_path() and reg_delete_path().
These functions are unused. Comment them out for now.

Michael
(This used to be commit 0cb8399d7c)
2008-01-17 16:25:11 +01:00
Michael Adam
99b195a6aa Move reg_create_path() and reg_delete_path() to reg_api.c
Michael
(This used to be commit 4d82cc586c)
2008-01-17 16:25:11 +01:00
Michael Adam
b6eaf05479 Add some sectioning comments to reg_api.c
Michael
(This used to be commit d3c9c27374)
2008-01-17 16:25:11 +01:00
Michael Adam
1a15320dcd Make utility function reg_deletekey_recursive_internal() static.
Michael
(This used to be commit 3e66127322)
2008-01-17 16:25:11 +01:00
Michael Adam
8c2d440c1f Use the proper boolean constants in reg_frontend_hilvl.c
Michael
(This used to be commit 5c0a1d5d45)
2008-01-17 16:25:11 +01:00
Michael Adam
6e1d36f8c6 Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
Michael
(This used to be commit 36085d9004)
2008-01-17 16:25:11 +01:00
Michael Adam
982c71fcd2 Use the proper boolean functions.
Michael
(This used to be commit beaa83f32b)
2008-01-15 14:56:00 +01:00
Michael Adam
8a01076334 Remove some trailing spaces.
Michael
(This used to be commit 1941c365b5)
2008-01-15 14:55:04 +01:00
Michael Adam
d35bda0ffd Add detection for need of update to the registry db.
This only detects if the tdb sequence number has changed
since the data has last been read.

Michael
(This used to be commit 3f081ebead)
2008-01-14 19:38:01 +01:00
Michael Adam
2f195e52fa Fix a DEBUG statement.
Michael
(This used to be commit 18360b852c)
2008-01-04 21:35:29 +01:00