Kai Blin
a8b567aac3
net: Use true/false instead of True/False.
2008-05-20 14:27:08 +02:00
Michael Adam
db933ae1a9
net rpc registry: fix getvalueraw to really print raw...
...
Michael
2008-05-15 18:06:23 +02:00
Michael Adam
5b5b29302b
net rpc registry: add a getvalueraw subcommand.
...
Michael
2008-05-15 17:17:56 +02:00
Michael Adam
9ee5ddb963
net rpc registry: abstract add boolean "raw" to rpc_registry_getvalue_internal()
...
and wrap it into new rpc_registry_getvalue_full() for the getvalue subcommand.
Michael
2008-05-15 17:17:55 +02:00
Michael Adam
5dedde7a5b
net rpc registry: fix usage message of getvalue.
...
Michael
2008-05-15 17:17:55 +02:00
Michael Adam
340a706422
net_registry: add raw output of value to print_registry_value().
...
Michael
2008-05-15 17:17:55 +02:00
Kai Blin
ef0184d580
net: more whitespace cleanup
2008-05-10 09:22:31 +02:00
Kai Blin
1e9319cf88
net: Remove globals
2008-05-10 09:22:27 +02:00
Kai Blin
e3470e9a1b
net: Fix usage string.
2008-05-10 09:22:16 +02:00
Michael Adam
ba59383437
net rpc registry: add getvalue command.
...
This is the same as already implemented for "net registry".
usage: net rpc registry getvalue <key> <valuename>
Michael
2008-04-09 23:52:35 +02:00
Michael Adam
88c4851ad7
net (registry util): refactor printing of value without name out.
...
This renames print_registry_value() to print_registry_value_with_name().
The new function is called print_registry_value().
Michael
2008-04-09 23:52:34 +02:00
Michael Adam
0dc9840cef
net_rpc_registry: return available error code on failure in deletevalue.
...
Michael
2008-04-04 17:52:35 +02:00
Michael Adam
26e3d71cd0
net_rpc_registry: consistently return error upon wrong use.
...
Michael
2008-04-04 17:50:41 +02:00
Michael Adam
68d08ecf92
net: change split_hive_key() to properly allocate subkeyname
...
instead of returning a pointer into another string.
Michael
2008-04-04 17:24:53 +02:00
Michael Adam
61d09caef3
net_rpc_registry: use split_hive_key to normalize hive befor open.
...
THis allows to specify keys in the form "HKLM/Software/samba",
i.e. "/" instead of "\\".
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
3d039b518f
net_rpc_registry: use utility function print_registry_value().
...
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
cc1da3ee2c
net_rpc_registy: use function print_registry_key
...
Michael
2008-04-04 17:05:00 +02:00
Jeremy Allison
063358d87a
Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().
...
Jeremy.
2007-12-04 15:21:14 -08:00
Günther Deschner
677d9e6d86
Fix winreg callers.
...
Guenther
2007-12-03 18:43:19 +01:00
Stefan Metzmacher
c2645d2164
ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)
...
lib/messages_local.c
rpc_client/ndr.c
smbd/notify_internal.c
utils/net_rpc_registry.c
metze
2007-11-09 21:23:16 +01:00
Günther Deschner
62d4cce456
Make sure we can read SACLs from the registry.
...
Guenther
2007-11-05 03:26:01 +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
09e10d1d29
r25592: Allow to set sec_info for registry security descriptor queries.
...
Guenther
2007-10-10 12:31:16 -05:00
Günther Deschner
31a0bf7b8c
r25526: Fix usage output.
...
Guenther
2007-10-10 12:31:12 -05:00
Günther Deschner
550ae11ad1
r25525: Add "net rpc registry getsd <keyname>" to display security descriptors.
...
Guenther
2007-10-10 12:31:11 -05:00
Günther Deschner
693b3c26c0
r25314: Add HKEY_CURRENT_USER to reg_hive_key().
...
Guenther
2007-10-10 12:30:58 -05:00
Michael Adam
57c30f7319
r24637: In order for "net rpc registry" to be able to write to
...
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
2007-10-10 12:30:12 -05:00
Volker Lendecke
d74bbc53c2
r24057: Fix some uninitialized variables found by the IBM checker
2007-10-10 12:29:00 -05:00
Andrew Tridgell
b0132e94fc
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
a66a04e9f1
r22747: Fix some C++ warnings
2007-10-10 12:21:54 -05:00
Jelmer Vernooij
e73a418b5b
r21462: Fix EnumValue (?)
2007-10-10 12:18:06 -05:00
Jelmer Vernooij
580f2a7197
r20832: Remove extra pointers previously added to unique [out] pointers. 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.
2007-10-10 12:17:11 -05:00
Volker Lendecke
382827ebac
r20498: Two 64-bit warnings
2007-10-10 12:16:53 -05:00
Volker Lendecke
de05358351
r20003: Fix error message
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
Volker Lendecke
b148cde7f3
r19914: The "default" value with the name "" need different 0-length treatment as the
...
other StringBufs, otherwise clicking on a key with this value being set leads
to regedit.exe on w2k3 chew all memory.
2007-10-10 12:16:09 -05:00
Volker Lendecke
3047a4b92c
r19827: Move registry_push/pull_value to lib/util_reg.c
2007-10-10 12:16:00 -05:00
Volker Lendecke
b2866b1318
r19825: To create a key, smbd also needs read privs assigned
2007-10-10 12:16:00 -05:00
Volker Lendecke
419ebc92f0
r19822: Implement net rpc registry createkey, deletekey and deletevalue
2007-10-10 12:15:59 -05:00
Volker Lendecke
30f02e73fd
r19821: Make net_rpc_registry use net_run_function2.
...
Fix an erroneous NT_STATUS_NO_MEMORY found by Chetan S <cshring@gmail.com>.
Thanks :-)
Volker
2007-10-10 12:15:59 -05:00
Volker Lendecke
7fd1578a90
r19818: Remove reg_split_hive, make use of registry_openkey
2007-10-10 12:15:58 -05:00
Volker Lendecke
9ecb69c075
r19817: Implement net rpc registry setvalue (only dword and sz so far)
2007-10-10 12:15:58 -05:00
Volker Lendecke
f24e64160d
r19812: dump_regval_buf is not needed anymore
2007-10-10 12:15:57 -05:00
Volker Lendecke
6793301751
r19811: Decode REG_MULTI_SZ and REG_BINARY
2007-10-10 12:15:57 -05:00
Volker Lendecke
40922eb924
r19807: First attempt at wrapping something sane around the registry API. Will be
...
extended.
Volker
2007-10-10 12:15:57 -05:00
Volker Lendecke
cb9e16c838
r19804: Fix a valgrind error
2007-10-10 12:15:57 -05:00
Volker Lendecke
95c14a822c
r19790: Check in the PIDL change and the converted unixinfo and winbind 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
2007-10-10 12:15:55 -05:00
Gerald Carter
5d843612a1
r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO
...
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.
2007-10-10 12:14:53 -05:00
Gerald Carter
f2747daafc
r18964: fix 'net rpc registry save' to use the new wnireg client code
2007-10-10 12:14:52 -05:00