summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_registry.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-20/+25
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to useGerald Carter1-10/+16
the new talloc() features: Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d since the methods use the object pointer as the talloc context for internal private data. There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy() pair of functions. Simply TALLOC_ZERO_P() and TALLOC_FREE() the object. Also had to convert the printer_info_2->NT_PRINTER_DATA field to be talloc()'d as well. This is just a stop on the road to cleaning up the printer memory management. (This used to be commit ef721333ab9639cb5346067497e99fbd0d4425dd)
2007-10-10r7691: * add .gdbinit to the svn:ignore filesGerald Carter1-3/+0
* start adding write support to the Samba registry Flesh out the server implementations of RegCreateKey(), RegSetValue(), RegDeleteKey() and RegDeleteValue() I can create a new key using regedit.exe now but the 'New Key #1' key cannot be deleted yet. (This used to be commit e188fdbef8f0ad202b0ecf3c30be2941ebe6d5b1)
2007-10-10r6995: * fixing segfault when writing out registry values of zero lengthGerald Carter1-12/+8
* add RegSaveKey() client function * add 'net rpc registry save' subcommand (This used to be commit f35e0a0a8d8df5c39e61ebd34c4aecbc5c9bb635)
2007-10-10r6942: * merging the registry changes back to the 3.0 treeGerald Carter1-0/+495
* removing the testprns tool (This used to be commit 81ffb0dbbbd244623507880c323a3c37e2b8dc4d)