diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-29 21:47:14 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-29 21:47:14 +0000 |
commit | d1986ade30bdcac1f49707221a3e5a5ae597ce62 (patch) | |
tree | f98274bef4fef5bc6719c360bc444b9134f0ef44 /source/rpcclient | |
parent | 85cc680736f17e3f879895be5dac8f1427653919 (diff) | |
download | samba-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.c | 9 |
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); |