summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-11 16:03:24 +0100
committerGünther Deschner <gd@samba.org>2011-01-11 17:09:25 +0100
commit4920390913f8b9eb8601a318be56fb272cc9a43b (patch)
tree46acaae0723a0cc6c49c9d662e282d3d85b5bce3 /source3/rpcclient
parent4f305f438b69b24f803d1b4f27b90d2c81794471 (diff)
downloadsamba-4920390913f8b9eb8601a318be56fb272cc9a43b.tar.gz
samba-4920390913f8b9eb8601a318be56fb272cc9a43b.tar.bz2
samba-4920390913f8b9eb8601a318be56fb272cc9a43b.zip
s3-wkssvc: prefer dcerpc_wkssvc_X functions.
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_wkssvc.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c
index 147501049a..e4ee959d06 100644
--- a/source3/rpcclient/cmd_wkssvc.c
+++ b/source3/rpcclient/cmd_wkssvc.c
@@ -20,7 +20,7 @@
#include "includes.h"
#include "rpcclient.h"
-#include "../librpc/gen_ndr/cli_wkssvc.h"
+#include "../librpc/gen_ndr/ndr_wkssvc_c.h"
static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
@@ -32,6 +32,7 @@ static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
uint32_t level = 100;
union wkssvc_NetWkstaInfo info;
const char *server_name;
+ struct dcerpc_binding_handle *b = cli->binding_handle;
if (argc > 2) {
printf("usage: %s <level>\n", argv[0]);
@@ -44,7 +45,7 @@ static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
server_name = cli->desthost;
- status = rpccli_wkssvc_NetWkstaGetInfo(cli, mem_ctx,
+ status = dcerpc_wkssvc_NetWkstaGetInfo(b, mem_ctx,
server_name,
level,
&info,
@@ -66,11 +67,12 @@ static WERROR cmd_wkssvc_getjoininformation(struct rpc_pipe_client *cli,
enum wkssvc_NetJoinStatus name_type;
NTSTATUS status;
WERROR werr;
+ struct dcerpc_binding_handle *b = cli->binding_handle;
server_name = cli->desthost;
name_buffer = "";
- status = rpccli_wkssvc_NetrGetJoinInformation(cli, mem_ctx,
+ status = dcerpc_wkssvc_NetrGetJoinInformation(b, mem_ctx,
server_name,
&name_buffer,
&name_type,
@@ -99,6 +101,7 @@ static WERROR cmd_wkssvc_messagebuffersend(struct rpc_pipe_client *cli,
const char *message = "my message";
NTSTATUS status;
WERROR werr;
+ struct dcerpc_binding_handle *b = cli->binding_handle;
if (argc > 1) {
message = argv[1];
@@ -110,7 +113,7 @@ static WERROR cmd_wkssvc_messagebuffersend(struct rpc_pipe_client *cli,
return WERR_NOMEM;
}
- status = rpccli_wkssvc_NetrMessageBufferSend(cli, mem_ctx,
+ status = dcerpc_wkssvc_NetrMessageBufferSend(b, mem_ctx,
server_name,
message_name,
message_sender_name,
@@ -134,6 +137,7 @@ static WERROR cmd_wkssvc_enumeratecomputernames(struct rpc_pipe_client *cli,
NTSTATUS status;
struct wkssvc_ComputerNamesCtr *ctr = NULL;
WERROR werr;
+ struct dcerpc_binding_handle *b = cli->binding_handle;
server_name = cli->desthost;
@@ -141,7 +145,7 @@ static WERROR cmd_wkssvc_enumeratecomputernames(struct rpc_pipe_client *cli,
name_type = atoi(argv[1]);
}
- status = rpccli_wkssvc_NetrEnumerateComputerNames(cli, mem_ctx,
+ status = dcerpc_wkssvc_NetrEnumerateComputerNames(b, mem_ctx,
server_name,
name_type, 0,
&ctr,
@@ -170,6 +174,7 @@ static WERROR cmd_wkssvc_enumerateusers(struct rpc_pipe_client *cli,
struct wkssvc_NetWkstaEnumUsersInfo info;
WERROR werr;
uint32_t i, num_entries, resume_handle;
+ struct dcerpc_binding_handle *b = cli->binding_handle;
server_name = cli->desthost;
@@ -179,7 +184,7 @@ static WERROR cmd_wkssvc_enumerateusers(struct rpc_pipe_client *cli,
info.level = atoi(argv[1]);
}
- status = rpccli_wkssvc_NetWkstaEnumUsers(cli, mem_ctx, server_name,
+ status = dcerpc_wkssvc_NetWkstaEnumUsers(b, mem_ctx, server_name,
&info, 1000, &num_entries,
&resume_handle, &werr);
if (!NT_STATUS_IS_OK(status)) {