summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-16 00:07:25 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-16 00:07:25 +0000
commit1bcbc67767e68ae12533c1ea44e2c0a567e4c93c (patch)
tree6f26549c06de7712e4bd19a127ec415fca4e9b4b
parentc404bb775414139a4b07a73f79cf069a083acb26 (diff)
downloadsamba-1bcbc67767e68ae12533c1ea44e2c0a567e4c93c.tar.gz
samba-1bcbc67767e68ae12533c1ea44e2c0a567e4c93c.tar.bz2
samba-1bcbc67767e68ae12533c1ea44e2c0a567e4c93c.zip
trust password
(This used to be commit fa86770d56fd4a3e280ee4f5685e29dee2a713fb)
-rw-r--r--source3/passdb/smbpassfile.c4
-rw-r--r--source3/rpcclient/cmd_netlogon.c2
-rw-r--r--source3/smbd/process.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/source3/passdb/smbpassfile.c b/source3/passdb/smbpassfile.c
index 13a1a9f508..2456abe50a 100644
--- a/source3/passdb/smbpassfile.c
+++ b/source3/passdb/smbpassfile.c
@@ -321,14 +321,14 @@ account is now invalid. Please recreate. Error was %s.\n", strerror(errno) ));
return True;
}
-BOOL trust_get_passwd( unsigned char trust_passwd[16], char *myname, char *domain)
+BOOL trust_get_passwd( unsigned char trust_passwd[16], char *domain, char *myname)
{
time_t lct;
/*
* Get the machine account password.
*/
- if(!trust_password_lock( myname, domain, False)) {
+ if(!trust_password_lock( domain, myname, False)) {
DEBUG(0,("domain_client_validate: unable to open the machine account password file for \
machine %s in domain %s.\n", myname, domain ));
return False;
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index 88510c95e7..1be24fe130 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -78,7 +78,7 @@ void cmd_netlogon_login_test(struct client_info *info)
DEBUG(5,("do_nt_login_test: username %s\n", nt_user_name));
- res = res ? trust_get_passwd(trust_passwd, info->myhostname, smb_cli->domain) : False;
+ res = res ? trust_get_passwd(trust_passwd, smb_cli->domain, info->myhostname) : False;
#if 0
/* check whether the user wants to change their machine password */
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 9c00d6fc00..a38e6da683 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -873,7 +873,7 @@ void smbd_process(void)
return;
}
- if(global_machine_pasword_needs_changing)
+ if(global_machine_password_needs_changing)
{
unsigned char trust_passwd_hash[16];
time_t lct;
@@ -908,7 +908,7 @@ machine %s in domain %s.\n", global_myname, global_myworkgroup ));
if(t < lct + lp_machine_password_timeout()) {
trust_password_unlock();
- global_machine_pasword_needs_changing = False;
+ global_machine_password_needs_changing = False;
continue;
}
@@ -916,7 +916,7 @@ machine %s in domain %s.\n", global_myname, global_myworkgroup ));
change_trust_account_password( global_myworkgroup, remote_machine_list);
trust_password_unlock();
- global_machine_pasword_needs_changing = False;
+ global_machine_password_needs_changing = False;
}
/*