1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
Commit Graph

74 Commits

Author SHA1 Message Date
Günther Deschner
531af136f9 s3: remove POLICY_HND.
Guenther
2009-03-18 23:22:29 +01:00
Michael Adam
e026d217bf s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
58fc61217d s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
This paves the way for hiding the typedef and the implementation from the
surface.

Michael
2009-02-26 13:22:51 +01:00
Günther Deschner
9361c73c2f winreg: fix winreg_EnumValue callers.
Guenther
2009-01-16 00:28:46 +01:00
Jelmer Vernooij
a8707a43d0 Regenerate pidl output. 2008-10-20 12:19:01 +02:00
Günther Deschner
fd3ba988dc s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
Guenther
2008-09-23 09:49:56 +02:00
Volker Lendecke
f23567fcb9 Refactoring: run_rpc_command uses ndr_syntax_id instead of pipe_idx
(This used to be commit 850166ec0d)
2008-07-21 14:36:28 +02:00
Kai Blin
255bdb2602 net: Rename functable3 to functable, get rid of old functables
(This used to be commit bb7c5fc4ec)
2008-06-10 09:48:21 +02:00
Kai Blin
3d7a927ece net: Make "net rpc registry" use functable3
(This used to be commit 08dd5f5311)
2008-06-10 09:48:10 +02:00
Kai Blin
16938883e6 net: Use true/false instead of True/False.
(This used to be commit a8b567aac3)
2008-05-20 14:27:08 +02:00
Michael Adam
b1d6e885b1 net rpc registry: fix getvalueraw to really print raw...
Michael
(This used to be commit db933ae1a9)
2008-05-15 18:06:23 +02:00
Michael Adam
abafce6ba7 net rpc registry: add a getvalueraw subcommand.
Michael
(This used to be commit 5b5b29302b)
2008-05-15 17:17:56 +02:00
Michael Adam
301196f847 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
(This used to be commit 9ee5ddb963)
2008-05-15 17:17:55 +02:00
Michael Adam
9b920fa1f7 net rpc registry: fix usage message of getvalue.
Michael
(This used to be commit 5dedde7a5b)
2008-05-15 17:17:55 +02:00
Michael Adam
49835c6d9e net_registry: add raw output of value to print_registry_value().
Michael
(This used to be commit 340a706422)
2008-05-15 17:17:55 +02:00
Kai Blin
4206d97544 net: more whitespace cleanup
(This used to be commit ef0184d580)
2008-05-10 09:22:31 +02:00
Kai Blin
f576910944 net: Remove globals
(This used to be commit 1e9319cf88)
2008-05-10 09:22:27 +02:00
Kai Blin
44c689289c net: Fix usage string.
(This used to be commit e3470e9a1b)
2008-05-10 09:22:16 +02:00
Michael Adam
f04b67ca20 net rpc registry: add getvalue command.
This is the same as already implemented for "net registry".

usage: net rpc registry getvalue <key> <valuename>

Michael
(This used to be commit ba59383437)
2008-04-09 23:52:35 +02:00
Michael Adam
d3dcaac176 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
(This used to be commit 88c4851ad7)
2008-04-09 23:52:34 +02:00
Michael Adam
0000eeb9b8 net_rpc_registry: return available error code on failure in deletevalue.
Michael
(This used to be commit 0dc9840cef)
2008-04-04 17:52:35 +02:00
Michael Adam
c7aa3dd3c0 net_rpc_registry: consistently return error upon wrong use.
Michael
(This used to be commit 26e3d71cd0)
2008-04-04 17:50:41 +02:00
Michael Adam
ae790f9b89 net: change split_hive_key() to properly allocate subkeyname
instead of returning a pointer into another string.

Michael
(This used to be commit 68d08ecf92)
2008-04-04 17:24:53 +02:00
Michael Adam
65088387c0 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
(This used to be commit 61d09caef3)
2008-04-04 17:05:00 +02:00
Michael Adam
0bd2ac7130 net_rpc_registry: use utility function print_registry_value().
Michael
(This used to be commit 3d039b518f)
2008-04-04 17:05:00 +02:00
Michael Adam
2ce236cbaf net_rpc_registy: use function print_registry_key
Michael
(This used to be commit cc1da3ee2c)
2008-04-04 17:05:00 +02:00
Jeremy Allison
5ea101f048 Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().
Jeremy.
(This used to be commit 063358d87a)
2007-12-04 15:21:14 -08:00
Günther Deschner
82089a2e84 Fix winreg callers.
Guenther
(This used to be commit 677d9e6d86)
2007-12-03 18:43:19 +01:00
Stefan Metzmacher
f9578af966 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
(This used to be commit c2645d2164)
2007-11-09 21:23:16 +01:00
Günther Deschner
fc22f295d0 Make sure we can read SACLs from the registry.
Guenther
(This used to be commit 62d4cce456)
2007-11-05 03:26:01 +01:00
Jeremy Allison
30191d1a57 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.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Günther Deschner
5de28a07cc r25592: Allow to set sec_info for registry security descriptor queries.
Guenther
(This used to be commit 09e10d1d29)
2007-10-10 12:31:16 -05:00
Günther Deschner
ffd91e763e r25526: Fix usage output.
Guenther
(This used to be commit 31a0bf7b8c)
2007-10-10 12:31:12 -05:00
Günther Deschner
70001d3106 r25525: Add "net rpc registry getsd <keyname>" to display security descriptors.
Guenther
(This used to be commit 550ae11ad1)
2007-10-10 12:31:11 -05:00
Günther Deschner
c32358d001 r25314: Add HKEY_CURRENT_USER to reg_hive_key().
Guenther
(This used to be commit 693b3c26c0)
2007-10-10 12:30:58 -05:00
Michael Adam
46f199961f 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
(This used to be commit 57c30f7319)
2007-10-10 12:30:12 -05:00
Volker Lendecke
6e419551ae r24057: Fix some uninitialized variables found by the IBM checker
(This used to be commit d74bbc53c2)
2007-10-10 12:29:00 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Volker Lendecke
7192160599 r22747: Fix some C++ warnings
(This used to be commit a66a04e9f1)
2007-10-10 12:21:54 -05:00
Jelmer Vernooij
1052cadbae r21462: Fix EnumValue (?)
(This used to be commit e73a418b5b)
2007-10-10 12:18:06 -05:00
Jelmer Vernooij
62e11c4f17 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.
(This used to be commit 580f2a7197)
2007-10-10 12:17:11 -05:00
Volker Lendecke
8cc702bf5a r20498: Two 64-bit warnings
(This used to be commit 382827ebac)
2007-10-10 12:16:53 -05:00
Volker Lendecke
38cc572b1e r20003: Fix error message
(This used to be commit de05358351)
2007-10-10 12:16:19 -05:00
Volker Lendecke
ecf90c495e 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
(This used to be commit fea52801de)
2007-10-10 12:16:18 -05:00
Volker Lendecke
f57cd1f63c 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.
(This used to be commit b148cde7f3)
2007-10-10 12:16:09 -05:00
Volker Lendecke
334c868b83 r19827: Move registry_push/pull_value to lib/util_reg.c
(This used to be commit 3047a4b92c)
2007-10-10 12:16:00 -05:00
Volker Lendecke
6fad55ff89 r19825: To create a key, smbd also needs read privs assigned
(This used to be commit b2866b1318)
2007-10-10 12:16:00 -05:00
Volker Lendecke
ef4112922a r19822: Implement net rpc registry createkey, deletekey and deletevalue
(This used to be commit 419ebc92f0)
2007-10-10 12:15:59 -05:00
Volker Lendecke
e56be1dead 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
(This used to be commit 30f02e73fd)
2007-10-10 12:15:59 -05:00