summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-15 16:07:06 +0200
committerMichael Adam <obnox@samba.org>2008-05-15 17:17:55 +0200
commit301196f847cf51c3d94f176ab57abb95be0cad35 (patch)
treeb8db7c518f7c3b4188a4278b8ac8b1651ad09534 /source3/utils
parent9b920fa1f76c0bfde9dce5ade5b80882095f1705 (diff)
downloadsamba-301196f847cf51c3d94f176ab57abb95be0cad35.tar.gz
samba-301196f847cf51c3d94f176ab57abb95be0cad35.tar.bz2
samba-301196f847cf51c3d94f176ab57abb95be0cad35.zip
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 9ee5ddb96360987675963d629f98051bf34e3031)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_registry.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index fa16a96009..a453dc5d5c 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -498,6 +498,7 @@ static NTSTATUS rpc_registry_getvalue_internal(struct net_context *c,
struct cli_state *cli,
struct rpc_pipe_client *pipe_hnd,
TALLOC_CTX *mem_ctx,
+ bool raw,
int argc,
const char **argv)
{
@@ -579,6 +580,20 @@ done:
return status;
}
+static NTSTATUS rpc_registry_getvalue_raw(struct net_context *c,
+ const DOM_SID *domain_sid,
+ const char *domain_name,
+ struct cli_state *cli,
+ struct rpc_pipe_client *pipe_hnd,
+ TALLOC_CTX *mem_ctx,
+ int argc,
+ const char **argv)
+{
+ return rpc_registry_getvalue_internal(c, domain_sid, domain_name,
+ cli, pipe_hnd, mem_ctx, false,
+ argc, argv);
+}
+
static int rpc_registry_getvalue(struct net_context *c, int argc,
const char **argv)
{
@@ -589,7 +604,7 @@ static int rpc_registry_getvalue(struct net_context *c, int argc,
}
return run_rpc_command(c, NULL, PI_WINREG, 0,
- rpc_registry_getvalue_internal, argc, argv);
+ rpc_registry_getvalue_raw, argc, argv);
}
static NTSTATUS rpc_registry_createkey_internal(struct net_context *c,