r24637: In order for "net rpc registry" to be able to write to
authorMichael Adam <obnox@samba.org>
Thu, 23 Aug 2007 15:33:25 +0000 (15:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:12 +0000 (12:30 -0500)
commit57c30f7319b35fa452e8a6c585810e55c7e934b2
treeadc4b09ecac86b653579fbacb98b490839a7c0e6
parentc0022ff9278a06b92a550cf0d6a8e75af31a673c
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
source/utils/net_rpc_registry.c