Michael Adam
bf6340d00d
Move implementation of _winreg_SaveKey() from srv_winreg_nt.c to reg_api.c
...
This gives a new function reg_savekey() and hides a piece of
the backend code from srv_winreg_nt.c. One step towards using
reg_api throughout samba code.
Michael
2008-02-15 16:23:10 +01:00
Michael Adam
84ec89ab9f
Adapt a comment to current circumstances.
...
Michael
2008-02-15 16:23:10 +01:00
Volker Lendecke
4a6dadc517
Fix some "set but never used" warnings
2008-01-20 17:44:40 +01:00
Michael Adam
d7a8d7ffbd
Fix typo in debug message.
...
Michael
2008-01-18 09:40:57 +01:00
Michael Adam
903223b160
Add a reg_getversion() function to reg_api and use it in srv_winreg_nt.c.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
81d6a1fbed
Add my (C) to reg_api.c - Michael
2008-01-17 16:25:11 +01:00
Michael Adam
15163926a8
Add a comment header comparing winreg.idl and reg_api.c.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
7251a24b48
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
2008-01-17 16:25:11 +01:00
Michael Adam
0cb8399d7c
Comment out unused reg_create_path() and reg_delete_path().
...
These functions are unused. Comment them out for now.
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
4d82cc586c
Move reg_create_path() and reg_delete_path() to reg_api.c
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
d3c9c27374
Add some sectioning comments to reg_api.c
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
3e66127322
Make utility function reg_deletekey_recursive_internal() static.
...
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
beaa83f32b
Use the proper boolean functions.
...
Michael
2008-01-15 14:56:00 +01:00
Michael Adam
1941c365b5
Remove some trailing spaces.
...
Michael
2008-01-15 14:55:04 +01:00
Michael Adam
3f081ebead
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
2008-01-14 19:38:01 +01:00
Michael Adam
4a56d3d707
Fix a permissions error in reg_deletekey_recursive().
...
Michael
2007-12-31 03:25:54 +01:00
Volker Lendecke
bc3bd7a8e7
Remove tiny code duplication
...
ndr_size_security_descriptor does the same as sec_desc_size
2007-12-29 23:13:26 +01:00
Günther Deschner
d140d68537
When deleting a key from the registry make sure the non-default
...
security descriptor gets deleted as well.
Guenther
2007-11-06 00:50:47 +01:00
Jeremy Allison
f35a266b3c
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Günther Deschner
43ca04918a
r25417: Use DBGC_REGISTRY class.
...
Guenther
2007-10-10 12:31:04 -05:00
Günther Deschner
e9922cd8ae
r25370: Allow to delete registry keys recursively without deleting the final key.
...
Guenther
2007-10-10 12:31:01 -05:00
Günther Deschner
f7457c6173
r24418: Adding reg_deleteallvalues().
...
Guenther
2007-10-10 12:29:44 -05:00
Andrew Tridgell
87c91e4362
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
fb4ade3b4d
r23584: Use a while loop instead of a for loop without increment... :-)
...
Michael
2007-10-10 12:23:32 -05:00
Michael Adam
41c3ff6e27
r23583: Add a utility function to recursively delete a Registry
...
key with all its subkeys. (reg_deletekey will refuse to
delete a key with subkeys with WERR_ACCESS_DENIED).
Michael
2007-10-10 12:23:32 -05:00
Michael Adam
aa702e53a7
r23581: Move regkey_open_onelevel from reg_frontend to reg_api,
...
where it actually belongs, and make it static.
Michael
2007-10-10 12:23:32 -05:00
Michael Adam
0c9cb69b45
r23578: When calling DeleteKey for a key that has subkey(s), Windows
...
returns WERR_ACCESS_DENIED. This adapts reg_deletekey to behave
the same way.
Michael
2007-10-10 12:23:32 -05:00
Michael Adam
e09e0d642d
r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of
...
WERR_BAD_FILE when all items have been successfully enumerated.
Besides seeming the reasonable code to return,
this is what I have seen from w2k3, w2k, wxp.
2007-10-10 12:19:39 -05:00
Volker Lendecke
9de16f25c1
r22135: Check in most of Michael Adam's net conf utility. A good share of this patch
...
is moving functions around to fix some linker dependencies for the registry.
Michael, I've renamed your auth_utils2.c to token_utils.c.
Thanks!
Volker
2007-10-10 12:19:16 -05:00
Volker Lendecke
0742faaacd
r20037: Reduce code size slightly by shuffling stuff around
2007-10-10 12:16:22 -05:00
Volker Lendecke
281640823b
r20018: Fix a memleak in reg_createkey
2007-10-10 12:16:21 -05:00
Volker Lendecke
dc0300ec70
r20004: Remove a const, "name" is allocated anyway
2007-10-10 12:16:19 -05:00
Volker Lendecke
fea52801de
r19991: Sorry for this 2000-liner...
...
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.
On that way it fixes creating keys with more than one element in the
path. This did not work before.
Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.
Volker
2007-10-10 12:16:18 -05:00