summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_registry.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-09net (registry util): refactor printing of value without name out.Michael Adam1-1/+1
This renames print_registry_value() to print_registry_value_with_name(). The new function is called print_registry_value(). Michael (This used to be commit 88c4851ad7240bc4f72a5ef92e21629e6a4c99c6)
2008-04-04net_rpc_registry: return available error code on failure in deletevalue.Michael Adam1-1/+1
Michael (This used to be commit 0dc9840cefb08b2732d294eb45508ce687ded324)
2008-04-04net_rpc_registry: consistently return error upon wrong use.Michael Adam1-5/+5
Michael (This used to be commit 26e3d71cd0b2d1bb31c50627ea71267328d52448)
2008-04-04net: change split_hive_key() to properly allocate subkeynameMichael Adam1-1/+1
instead of returning a pointer into another string. Michael (This used to be commit 68d08ecf92be3444b759300237b2b7cf5238d022)
2008-04-04net_rpc_registry: use split_hive_key to normalize hive befor open.Michael Adam1-28/+39
THis allows to specify keys in the form "HKLM/Software/samba", i.e. "/" instead of "\\". Michael (This used to be commit 61d09caef340d2fee303e429f6f25d011cb3023c)
2008-04-04net_rpc_registry: use utility function print_registry_value().Michael Adam1-30/+1
Michael (This used to be commit 3d039b518f04b9dd3c87b9af2ec816e049554e27)
2008-04-04net_rpc_registy: use function print_registry_keyMichael Adam1-5/+2
Michael (This used to be commit cc1da3ee2c369181efa6d150c966571d0aff0728)
2007-12-04Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().Jeremy Allison1-14/+33
Jeremy. (This used to be commit 063358d87ac9a1d948c8d4b6358e926dd14bb3ac)
2007-12-03Fix winreg callers.Günther Deschner1-28/+29
Guenther (This used to be commit 677d9e6d86997a1ae10266e9bab3b18c3fdd2890)
2007-11-09ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)Stefan Metzmacher1-3/+6
lib/messages_local.c rpc_client/ndr.c smbd/notify_internal.c utils/net_rpc_registry.c metze (This used to be commit c2645d2164c05976a98bafed980b6029baf89977)
2007-11-05Make sure we can read SACLs from the registry.Günther Deschner1-1/+5
Guenther (This used to be commit 62d4cce4562b77403f9353d333b9553352bdf1d8)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-3/+3
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25592: Allow to set sec_info for registry security descriptor queries.Günther Deschner1-8/+16
Guenther (This used to be commit 09e10d1d2936fd8c841de2a3323a1d0a1f6bd815)
2007-10-10r25526: Fix usage output.Günther Deschner1-5/+5
Guenther (This used to be commit 31a0bf7b8cae3322a379dc147be6493441c2f13d)
2007-10-10r25525: Add "net rpc registry getsd <keyname>" to display security descriptors.Günther Deschner1-0/+83
Guenther (This used to be commit 550ae11ad1243c4c2af68345349c96d38a5e1ef8)
2007-10-10r25314: Add HKEY_CURRENT_USER to reg_hive_key().Günther Deschner1-0/+3
Guenther (This used to be commit 693b3c26c0643028e861b78068c2bcda0add1105)
2007-10-10r24637: In order for "net rpc registry" to be able to write toMichael Adam1-4/+7
Samba's own registry, the access mask for opening the registry for the write operations needs to be SEC_RIGHTS_MAXIMUM_ALLOWED instead of REG_WRITE: we can not open e.g. HKLM read write explicitly, since we can not write to this virtual part of the registry, only to the subkeys like 'HKLM\Software\Samba\smbconf' that are stored on disk. Note that MAXIMUM_ALLOWED is also what windows' regedit passed to the open calls. Michael (This used to be commit 57c30f7319b35fa452e8a6c585810e55c7e934b2)
2007-10-10r24057: Fix some uninitialized variables found by the IBM checkerVolker Lendecke1-0/+11
(This used to be commit d74bbc53c2cf41e7e92309e81bb9c1b3f805cdd1)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r22747: Fix some C++ warningsVolker Lendecke1-1/+1
(This used to be commit a66a04e9f11f6c4462f2b56b447bae4eca7b177c)
2007-10-10r21462: Fix EnumValue (?)Jelmer Vernooij1-1/+2
(This used to be commit e73a418b5b0100936efb4c1133da3cfe3fcb61cd)
2007-10-10r20832: Remove extra pointers previously added to unique [out] pointers. ↵Jelmer Vernooij1-30/+15
Instead, add [ref] pointers where necessary (top-level [ref] pointers, by spec, don't appear on the wire). This brings us closer to the DCE/RPC standard again. (This used to be commit 580f2a7197b1bc9db14a643fdd112b40ef37aaef)
2007-10-10r20498: Two 64-bit warningsVolker Lendecke1-1/+1
(This used to be commit 382827ebac61646ec31fe1d56ccde2ea337e8f9e)
2007-10-10r20003: Fix error messageVolker Lendecke1-1/+1
(This used to be commit de053583510999658b2969b244b43ae85fb87737)
2007-10-10r19991: Sorry for this 2000-liner...Volker Lendecke1-11/+14
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 (This used to be commit fea52801de8c7b85c578d200c599475680c5339f)
2007-10-10r19914: The "default" value with the name "" need different 0-length ↵Volker Lendecke1-1/+1
treatment as the other StringBufs, otherwise clicking on a key with this value being set leads to regedit.exe on w2k3 chew all memory. (This used to be commit b148cde7f39859102288a87b6f0bd2b250947a85)
2007-10-10r19827: Move registry_push/pull_value to lib/util_reg.cVolker Lendecke1-115/+0
(This used to be commit 3047a4b92c7d5391a8f162f26ccc92ce30c35cee)
2007-10-10r19825: To create a key, smbd also needs read privs assignedVolker Lendecke1-1/+2
(This used to be commit b2866b1318f2fa521ff93ec5ed58413b9145385a)
2007-10-10r19822: Implement net rpc registry createkey, deletekey and deletevalueVolker Lendecke1-0/+168
(This used to be commit 419ebc92f02c9a927295ec7c54844bd5666e3f17)
2007-10-10r19821: Make net_rpc_registry use net_run_function2.Volker Lendecke1-24/+14
Fix an erroneous NT_STATUS_NO_MEMORY found by Chetan S <cshring@gmail.com>. Thanks :-) Volker (This used to be commit 30f02e73fd85faa89186511edab4d5396d5efb6a)
2007-10-10r19818: Remove reg_split_hive, make use of registry_openkeyVolker Lendecke1-55/+19
(This used to be commit 7fd1578a905d3c974cb88cc93452d43a03038d30)
2007-10-10r19817: Implement net rpc registry setvalue (only dword and sz so far)Volker Lendecke1-0/+191
(This used to be commit 9ecb69c075060d199133520ac6a7627a5faba7f3)
2007-10-10r19812: dump_regval_buf is not needed anymoreVolker Lendecke1-49/+0
(This used to be commit f24e64160dc7d7b7434cbed15677c105fa7b60de)
2007-10-10r19811: Decode REG_MULTI_SZ and REG_BINARYVolker Lendecke1-1/+25
(This used to be commit 679330175185f8504bb5968339dcc7cb20d9140c)
2007-10-10r19807: First attempt at wrapping something sane around the registry API. ↵Volker Lendecke1-135/+345
Will be extended. Volker (This used to be commit 40922eb924a8e21f28720f2651f087eefc3e3aed)
2007-10-10r19804: Fix a valgrind errorVolker Lendecke1-5/+4
(This used to be commit cb9e16c8389f25f487e627bbeb06ec45f25aef6b)
2007-10-10r19790: Check in the PIDL change and the converted unixinfo and winbind ↵Volker Lendecke1-5/+13
pipes without waiting for comments. This is what version control is for, and it does fix a segfault I ran into ;-) Nevertheless, Jelmer & Jerry, please take a look! Thanks, Volker (This used to be commit 95c14a822cae2ddc2e6ed87f5f5505fa7b98e4f0)
2007-10-10r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODOGerald Carter1-20/+99
items in cac_winreg.c * Get 'net rpc registry enumerate' to list values again * Fix winreg.idl QueryInfoKey(). The max_subkeysize is the max_classlen (we previously had this correct in Samba3") * fix valgrind error about uninitialized memory and use-before-set on size value inmemset() call * Fix key enumeration in 'net rpc registry enumerate' * regenerate gen_dir files based on local pidl patches Please note that the generated ndr files are from my local copy of pidl. If you need to regenerate, please apply the patch that I posted to the samba-technical list earlier today. (This used to be commit 5d843612a1b9d92022f76626f1c7473faebec4ba)
2007-10-10r18964: fix 'net rpc registry save' to use the new wnireg client codeGerald Carter1-10/+5
(This used to be commit f2747daafc2f1cd515570c676b2660ab6fcba740)
2007-10-10r18919: * Get the new rpccli_winreg_XXXX() functions into the treeGerald Carter1-29/+43
There some broken functionality here that I'm still working on. * remove unneeded parsing routines (This used to be commit cbfe1a4b498593a48fc34f584754ed4a9ef72cc5)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-39/+28
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r16614: Klocwork #2012. memleak on error path.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 58b9adb849854610e7167e8aa02a02bd15b0bf00)
2007-10-10r16612: Klocwork fix #2011. memleak on error path.Jeremy Allison1-6/+11
Jeremy. (This used to be commit b4e9475d2ac65f72cab0d5c8276da27cf1aeb791)
2007-10-10r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607Volker Lendecke1-2/+8
in net_rpc.c: 715 716 732 734 735 736 737 738 739 749 in net_rpc_audit.c: 754 755 756 in net_rpc_join.c: 757 in net_rpc_registry: 766 767 in net_rpc_samsync.c: 771 773 in net_sam.c: 797 798 Volker (This used to be commit 3df0bf7d6050fd7c9ace72487d4f74d92e30a584)
2007-10-10r14146: Just some typos.Günther Deschner1-1/+1
Guenther (This used to be commit ade86cc787e266850fee982b008a9caf2c8ed7e7)
2007-10-10r12986: Use d_fprintf(stderr, ...) for any error message in net.Lars Müller1-13/+17
All 'usage' messages are still printed to stdout. Fix some compiler warnings for system() calls where we didn't used the return code. Add appropriate error messages and return with the error code we got from system() or NT_STATUS_UNSUCCESSFUL. (This used to be commit f650e3bdafc4c6bcd7eb4bcf8b6b885b979919eb)
2007-10-10r12870: fixing net rpc registry enumerate from overwritnig the open subkey ↵Gerald Carter1-1/+0
handle (This used to be commit cc2e7052bd05a15f43268ce87dc29506bb5bb5bf)
2007-10-10r11579: syncing up perf counter code cfrom trunkGerald Carter1-5/+9
(This used to be commit 59c00924b67aa3d37a933731a56d03963ec7f1b5)
2007-10-10r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison1-1/+1
x86_64 box. Jeremy. (This used to be commit d720867a788c735e56d53d63265255830ec21208)