summaryrefslogtreecommitdiff
path: root/source3/rpc_client/ntclienttrust.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-12-13 13:27:58 +0000
committerAndrew Tridgell <tridge@samba.org>1999-12-13 13:27:58 +0000
commit3db52feb1f3b2c07ce0b06ad4a7099fa6efe3fc7 (patch)
tree866dd15416c3d8554bb207709f433a87ad0c012d /source3/rpc_client/ntclienttrust.c
parentf6276724bafdb6145c0c7b565172d80cb04516ea (diff)
downloadsamba-3db52feb1f3b2c07ce0b06ad4a7099fa6efe3fc7.tar.gz
samba-3db52feb1f3b2c07ce0b06ad4a7099fa6efe3fc7.tar.bz2
samba-3db52feb1f3b2c07ce0b06ad4a7099fa6efe3fc7.zip
first pass at updating head branch to be to be the same as the SAMBA_2_0 branch
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
Diffstat (limited to 'source3/rpc_client/ntclienttrust.c')
-rw-r--r--source3/rpc_client/ntclienttrust.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_client/ntclienttrust.c b/source3/rpc_client/ntclienttrust.c
index 0486017181..8ef193fa89 100644
--- a/source3/rpc_client/ntclienttrust.c
+++ b/source3/rpc_client/ntclienttrust.c
@@ -34,7 +34,7 @@ extern int DEBUGLEVEL;
check workstation trust account status
************************************************************************/
BOOL trust_account_check(struct in_addr dest_ip, char *dest_host,
- char *myhostname, char *domain, fstring mach_acct,
+ char *hostname, char *domain, fstring mach_acct,
fstring new_mach_pwd)
{
pstring tmp;
@@ -53,7 +53,7 @@ BOOL trust_account_check(struct in_addr dest_ip, char *dest_host,
char *change_mach_pwd;
/* initial machine password */
- fstrcpy(mach_pwd, myhostname);
+ fstrcpy(mach_pwd, hostname);
strlower(mach_pwd);
slprintf(tmp, sizeof(tmp) - 1,"Enter Workstation Trust Account password for [%s].\nDefault is [%s].\nPassword:",
@@ -91,9 +91,9 @@ BOOL trust_account_check(struct in_addr dest_ip, char *dest_host,
DEBUG(1,("server connect for cli_trust\n"));
- if (!server_connect_init(&cli_trust, myhostname, dest_ip, dest_host))
+ if (!server_connect_init(&cli_trust, hostname, dest_ip, dest_host))
{
- cli_error(&cli_trust, &err_cls, &err_num);
+ cli_error(&cli_trust, &err_cls, &err_num, NULL);
DEBUG(1,("server_connect_init failed (%s)\n", cli_errstr(&cli_trust)));
cli_shutdown(&cli_trust);
@@ -141,7 +141,7 @@ BOOL trust_account_check(struct in_addr dest_ip, char *dest_host,
return False;
}
- cli_error(&cli_trust, &err_cls, &err_num);
+ cli_error(&cli_trust, &err_cls, &err_num, NULL);
if (err_num == (0xC0000000 | NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT))
{