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 | 0d44ff9a765f2e89be8b0ee99ec7c907e7c225c3 (patch) | |
tree | d0c87722e19013a188c29096d35205ba675c7d89 /source3/rpcclient | |
parent | 44334ace985b55295dfc1c93e92d46e01d39fb97 (diff) | |
download | samba-0d44ff9a765f2e89be8b0ee99ec7c907e7c225c3.tar.gz samba-0d44ff9a765f2e89be8b0ee99ec7c907e7c225c3.tar.bz2 samba-0d44ff9a765f2e89be8b0ee99ec7c907e7c225c3.zip |
attempting to resolve the issue that multiple servers often specified in
parameters to connect to \PIPE\NETLOGON.
(This used to be commit d1986ade30bdcac1f49707221a3e5a5ae597ce62)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_netlogon.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 4933501b7a..0b0292e632 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/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); |