summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-04 19:43:07 +0100
committerGünther Deschner <gd@samba.org>2008-02-04 22:12:40 +0100
commit270ba9c238400f49d32c57a9a1bbde6ad63bb555 (patch)
treeafe7a0a532093a3ad4bf89ced652eeea0b339096 /source3/rpcclient
parentb361956942618ec2f7c2efc60cb190858adbc516 (diff)
downloadsamba-270ba9c238400f49d32c57a9a1bbde6ad63bb555.tar.gz
samba-270ba9c238400f49d32c57a9a1bbde6ad63bb555.tar.bz2
samba-270ba9c238400f49d32c57a9a1bbde6ad63bb555.zip
Use rpccli_samr_Connect2() all over the place.
Guenther (This used to be commit bdf8d562621e1a09bf83e2009dec24966e7fdf22)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_samr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index b0c6213f56..dbc20089ea 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -326,7 +326,7 @@ static void display_sam_info_5(SAM_ENTRY5 *e5, SAM_STR5 *s5)
}
/****************************************************************************
- Try samr_connect4 first, then samr_conenct if it fails
+ Try samr_connect4 first, then samr_connect2 if it fails
****************************************************************************/
static NTSTATUS try_samr_connects(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
uint32 access_mask, POLICY_HND *connect_pol)
@@ -339,8 +339,10 @@ static NTSTATUS try_samr_connects(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
access_mask,
connect_pol);
if (!NT_STATUS_IS_OK(result)) {
- result = rpccli_samr_connect(cli, mem_ctx, access_mask,
- connect_pol);
+ result = rpccli_samr_Connect2(cli, mem_ctx,
+ cli->cli->desthost,
+ access_mask,
+ connect_pol);
}
return result;
}