1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

414 Commits

Author SHA1 Message Date
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 e327953bd6b11aeb6f2ae48b49550a942eae8e88)
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 c3fba415951329ee90c7250b4e8d539f91b227f6)
2008-01-20 03:47:37 +01:00
Michael Adam
c4b65647ca Some reformatting of current_version_fetch_values().
Michael
(This used to be commit d2e3814db8a4a5f0fc097e9f56753888470ef213)
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 2c650bf63ccd9dc5dddbf4700831489544ded055)
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 80024f4e1c6594c3038e86a765f763d24fd96b59)
2008-01-20 02:03:41 +01:00
Michael Adam
8eed06fb8c Some reformatting in hkpt_params_fetch_values().
Michael
(This used to be commit f245c4e094ad56080847e286c76976f29c95a221)
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 8e8bb6ba120adf9942f612b7fd89bdbced6c1285)
2008-01-20 02:03:40 +01:00
Michael Adam
b4e3c75272 Some reformatting in tcpip_params_fetch_values().
Michael
(This used to be commit 5b3813b233dc2a60e6d5a9942b4044219d800415)
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 a8a743b693a162954948ca2438ce4b842c5cba30)
2008-01-20 02:03:40 +01:00
Michael Adam
f383b853f5 Some reformatting in prod_options_fetch_values().
Michael
(This used to be commit 347b9886547516bc2a43190ae7faaf349d2c9d04)
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 d9b89e9d30702f64805b3a3a3612066b19c051d1)
2008-01-20 02:03:39 +01:00
Michael Adam
d48c5f1599 Some reformatting in netlogon_params_fetch_values().
Michael
(This used to be commit 24f13fb72e4cbaba48235fa840b2a93bf1c5d9c3)
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 54e7c8098565495a833500d4b2a8d5240ed55c82)
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 9261b2c4bf48e133eecda9ec0095bd8edf20326c)
2008-01-20 02:03:38 +01:00
Michael Adam
1b2dd2dcc8 Fix registering Registry backends in reghook_cache_add().
This was broken in 331c0d6216e1a1607a49ed7eb4078e10138ec16a
(pstring removal).

Michael
(This used to be commit 7d1e986f3a5ab316a8501ddaca1ba1f0867b4531)
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 daf37c954572bbf652506daae9ff0c9c365b2a9e)
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 a73b8d16aa0f7a3bb7417e9839e04380e6a68629)
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 2c4dfd7aaa3c3b384b547451f914a86f59157928)
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 a89bee4139666ba163385c9e7d15fbc5d623ed6f)
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 96d116b003c1187869cbdbc21274a0b5cb1bf7d6)
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 f3901f179b770ffadb3e5a82ac5a2da00d83f40a)
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 e8a0524961d81fa83e0316905dc9d215e4aa7656)
2008-01-18 09:40:57 +01:00
Michael Adam
1ea809383e Fix typo in debug message.
Michael
(This used to be commit d7a8d7ffbd724a59aa3fc4bdeca6be5d5a0e7258)
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 903223b160eef6ba6ff19a8bfef19e5fe7008631)
2008-01-17 16:25:11 +01:00
Michael Adam
7f8e4bc68e Add my (C) to reg_api.c - Michael
(This used to be commit 81d6a1fbed5e685376637af8e8bcd70ab2701aa0)
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 15163926a8ae1116a0f0986f35fc16bcf9ce6ce2)
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 7251a24b489a008243091279d96157cacec35b62)
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 0cb8399d7c6f228b38c918f8c6c77fd31c346f89)
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 4d82cc586c089a16d1d2db214f5e198062890b58)
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 d3c9c273740b42e5da101f53d4df3aee70cdacf7)
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 3e661273229bcf021276cc0b71350acf8d8fed7c)
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 5c0a1d5d45948fdc483d6f9de31cea39e12722c6)
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 36085d9004592e48b66b681f85346db15e6d9b3a)
2008-01-17 16:25:11 +01:00
Michael Adam
982c71fcd2 Use the proper boolean functions.
Michael
(This used to be commit beaa83f32bd367f1b6ec72ef80a8a258d662f523)
2008-01-15 14:56:00 +01:00
Michael Adam
8a01076334 Remove some trailing spaces.
Michael
(This used to be commit 1941c365b50d48fc90f0f98059b8cccf6c7a1a06)
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 3f081ebeadf30a7943723703ecae479e0412c60c)
2008-01-14 19:38:01 +01:00
Michael Adam
2f195e52fa Fix a DEBUG statement.
Michael
(This used to be commit 18360b852c662d933ceff9854725f878a5de9a7d)
2008-01-04 21:35:29 +01:00
Michael Adam
1c183874ab Use the proper boolean constants.
Michael
(This used to be commit 2ba625e473e8eb23d692566d32a8ac965785df4e)
2008-01-04 15:26:05 +01:00
Günther Deschner
5c09517d7d Fix crash bug in regdb_close() when called with no ref count.
Michael, please check.

Guenther
(This used to be commit d6575ff5d240ec431b6e837494913dbd06e5a299)
2008-01-04 12:58:09 +01:00
Michael Adam
0240d175bf Return existsing cache_tree if it has already been initialized.
So reghook_cache_init() does not leak memory when called more
than once.
Also, fix the return value while we are at it.

Michael
(This used to be commit 25f571f40a630bff5a47bba6b01e42d4e0ffed66)
2008-01-03 12:07:02 +01:00
Michael Adam
feb4d82724 Fix a permissions error in reg_deletekey_recursive().
Michael
(This used to be commit 4a56d3d7075bd8bbd5e139c9433789ab29f6a70e)
2007-12-31 03:25:54 +01:00
Volker Lendecke
7cbdb48475 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
2007-12-29 23:13:26 +01:00
Volker Lendecke
c663c0055a Cut down memory usage of registry initialization
(This used to be commit 264d5dfe9fe97db0b69d7cd04086ad8ed9f78e74)
2007-12-16 14:02:46 +01:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07 17:32:32 -08:00
Günther Deschner
b05ffb5065 Fix _reg_perfcount_get_instance_info()
Guenther
(This used to be commit 20c1ba23f2e2902ef7c2237c63addfef2ae75eac)
2007-11-30 02:16:46 +01:00
Jeremy Allison
0bc4ff7b28 Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.c
Jeremy.
(This used to be commit b5a2a1e3f82a0d319fc9a1d76f5166150680f4d4)
2007-11-27 19:05:08 -08:00
Günther Deschner
9d42af0d24 Unless talloc has some new magic there is a ctx missing here.
Guenther
(This used to be commit 172f7ce96dc12cfc7d2209d8ed56aeebefd6207b)
2007-11-27 18:01:56 +01:00
Jeremy Allison
80c2446321 Remove pstrings from nsswitch/ and registry/
Jeremy.
(This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
2007-11-26 17:24:56 -08:00
Jeremy Allison
d40e47db4b Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
(This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-11-08 17:25:45 -08:00
Günther Deschner
99d9993fdb When deleting a key from the registry make sure the non-default
security descriptor gets deleted as well.

Guenther
(This used to be commit d140d68537225b6a6a99be3d9b09354e3f6ad8c9)
2007-11-06 00:50:47 +01:00