diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-04 12:14:37 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:16 +0100 |
commit | a91a59b9d8ad0a69fb88f657529013a22732c889 (patch) | |
tree | 870aacbcf51413b390edaae6d730c332f27a777f /source3/rpcclient | |
parent | 6fff55cf003dfb796894d1cd667302b667c0ea36 (diff) | |
download | samba-a91a59b9d8ad0a69fb88f657529013a22732c889.tar.gz |
s3:rpcclient: make use of dcerpc_binding_get_string_option("host")
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 0e6c6c3f4f6..ac7576fc017 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -943,6 +943,7 @@ out_free: uint32_t bflags = 0; const char *binding_string = NULL; char *user, *domain, *q; + const char *host; /* make sure the vars that get altered (4th field) are in a fixed location or certain compilers complain */ @@ -1075,6 +1076,8 @@ out_free: } } + host = dcerpc_binding_get_string_option(binding, "host"); + bflags = dcerpc_binding_get_flags(binding); if (bflags & DCERPC_CONNECT) { pipe_default_auth_level = DCERPC_AUTH_LEVEL_CONNECT; @@ -1134,8 +1137,7 @@ out_free: set_cmdline_auth_info_username(rpcclient_auth_info, q+1); } - - nt_status = cli_full_connection(&cli, lp_netbios_name(), binding->host, + nt_status = cli_full_connection(&cli, lp_netbios_name(), host, opt_ipaddr ? &server_ss : NULL, opt_port, "IPC$", "IPC", get_cmdline_auth_info_username(rpcclient_auth_info), |