summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-29 21:47:14 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-29 21:47:14 +0000
commitd1986ade30bdcac1f49707221a3e5a5ae597ce62 (patch)
treef98274bef4fef5bc6719c360bc444b9134f0ef44 /source/rpcclient
parent85cc680736f17e3f879895be5dac8f1427653919 (diff)
downloadsamba-d1986ade30bdcac1f49707221a3e5a5ae597ce62.tar.gz
samba-d1986ade30bdcac1f49707221a3e5a5ae597ce62.tar.xz
samba-d1986ade30bdcac1f49707221a3e5a5ae597ce62.zip
attempting to resolve the issue that multiple servers often specified in
parameters to connect to \PIPE\NETLOGON.
Diffstat (limited to 'source/rpcclient')
-rw-r--r--source/rpcclient/cmd_netlogon.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/rpcclient/cmd_netlogon.c b/source/rpcclient/cmd_netlogon.c
index 4933501b7a9..0b0292e632c 100644
--- a/source/rpcclient/cmd_netlogon.c
+++ b/source/rpcclient/cmd_netlogon.c
@@ -113,7 +113,8 @@ void cmd_netlogon_login_test(struct client_info *info, int argc, char *argv[])
res = res ? cli_nt_setup_creds(srv_name, info->myhostname,
trust_acct,
- trust_passwd, SEC_CHAN_WKSTA) == 0x0 : False;
+ trust_passwd, SEC_CHAN_WKSTA,
+ srv_name) == 0x0 : False;
#if 0
/* change the machine password? */
@@ -182,9 +183,11 @@ void cmd_netlogon_domain_test(struct client_info *info, int argc, char *argv[])
res = res ? trust_get_passwd(trust_passwd, usr_creds->domain, nt_trust_dom) : False;
- res = res ? cli_nt_setup_creds(srv_name, info->myhostname, inter_dom_acct,
+ res = res ? cli_nt_setup_creds(srv_name,
+ info->myhostname, inter_dom_acct,
trust_passwd,
- SEC_CHAN_DOMAIN) == 0x0 : False;
+ SEC_CHAN_DOMAIN,
+ srv_name) == 0x0 : False;
memset(trust_passwd, 0, 16);