diff options
-rw-r--r-- | source3/utils/net_rpc_registry.c | 3 |
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; |