summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 19:13:15 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 19:13:15 +0100
commit24692c83a946f8d215487a49a586f315837f4b63 (patch)
tree56ef6de5260e3979f084c2105afba462e01d2aac
parent944f11af5b2e90cb98a1a4f9681c893af644cff6 (diff)
downloadsamba-24692c83a946f8d215487a49a586f315837f4b63.tar.gz
samba-24692c83a946f8d215487a49a586f315837f4b63.tar.bz2
samba-24692c83a946f8d215487a49a586f315837f4b63.zip
Use rpccli_samr_Connect4() in rpcclient.
Guenther (This used to be commit c05b5709e4943345f5d2a35fad5155c79650686d)
-rw-r--r--source3/rpcclient/cmd_samr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 2799e46438..b0c6213f56 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -332,8 +332,12 @@ static NTSTATUS try_samr_connects(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
uint32 access_mask, POLICY_HND *connect_pol)
{
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
-
- result = rpccli_samr_connect4(cli, mem_ctx, access_mask, connect_pol);
+
+ result = rpccli_samr_Connect4(cli, mem_ctx,
+ cli->cli->desthost,
+ 2, /* unknown */
+ access_mask,
+ connect_pol);
if (!NT_STATUS_IS_OK(result)) {
result = rpccli_samr_connect(cli, mem_ctx, access_mask,
connect_pol);