summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-21 20:10:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:00 -0500
commit6fad55ff89965c7a6a9cbe0da6a2dea5bb635434 (patch)
tree1f54721ceea069b0d2da5b019b8156de93bed53d
parentc8951115792a8be64b294de68f47679c3c3ed28f (diff)
downloadsamba-6fad55ff89965c7a6a9cbe0da6a2dea5bb635434.tar.gz
samba-6fad55ff89965c7a6a9cbe0da6a2dea5bb635434.tar.bz2
samba-6fad55ff89965c7a6a9cbe0da6a2dea5bb635434.zip
r19825: To create a key, smbd also needs read privs assigned
(This used to be commit b2866b1318f2fa521ff93ec5ed58413b9145385a)
-rw-r--r--source3/utils/net_rpc_registry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 5d399b4b96..8bdea0ffd4 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -596,7 +596,8 @@ static NTSTATUS rpc_registry_createkey_internal(const DOM_SID *domain_sid,
return NT_STATUS_INVALID_PARAMETER;
}
- status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive, REG_KEY_WRITE,
+ status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive,
+ REG_KEY_READ|REG_KEY_WRITE,
&hive_hnd);
if (!(NT_STATUS_IS_OK(status))) {
return status;