mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
trust password
This commit is contained in:
parent
60c0f22a4e
commit
fa86770d56
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user