1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Rename get_trust_pw() to get_trust_pw_hash().

Michael
This commit is contained in:
Michael Adam 2007-12-11 14:07:32 +01:00
parent 4562342eb8
commit 0cde7ac9cb
4 changed files with 10 additions and 8 deletions

View File

@ -129,8 +129,8 @@ machine %s. Error was : %s.\n", dc_name, nt_errstr(result)));
unsigned char machine_pwd[16]; unsigned char machine_pwd[16];
const char *account_name; const char *account_name;
if (!get_trust_pw(domain, machine_pwd, &account_name, if (!get_trust_pw_hash(domain, machine_pwd, &account_name,
&sec_chan_type)) &sec_chan_type))
{ {
DEBUG(0, ("connect_to_domain_password_server: could not fetch " DEBUG(0, ("connect_to_domain_password_server: could not fetch "
"trust account password for domain '%s'\n", "trust account password for domain '%s'\n",

View File

@ -1587,8 +1587,8 @@ bool get_trust_pw_clear(const char *domain, char **ret_pwd,
appropriate account name is stored in account_name. appropriate account name is stored in account_name.
*******************************************************************/ *******************************************************************/
bool get_trust_pw(const char *domain, uint8 ret_pwd[16], bool get_trust_pw_hash(const char *domain, uint8 ret_pwd[16],
const char **account_name, uint32 *channel) const char **account_name, uint32 *channel)
{ {
char *pwd = NULL; char *pwd = NULL;
time_t last_set_time; time_t last_set_time;

View File

@ -2444,7 +2444,8 @@ struct rpc_pipe_client *get_schannel_session_key(struct cli_state *cli,
} }
/* Get the machine account credentials from secrets.tdb. */ /* Get the machine account credentials from secrets.tdb. */
if (!get_trust_pw(domain, machine_pwd, &machine_account, &sec_chan_type)) if (!get_trust_pw_hash(domain, machine_pwd, &machine_account,
&sec_chan_type))
{ {
DEBUG(0, ("get_schannel_session_key: could not fetch " DEBUG(0, ("get_schannel_session_key: could not fetch "
"trust account password for domain '%s'\n", "trust account password for domain '%s'\n",
@ -2557,7 +2558,8 @@ static struct rpc_pipe_client *get_schannel_session_key_auth_ntlmssp(struct cli_
} }
/* Get the machine account credentials from secrets.tdb. */ /* Get the machine account credentials from secrets.tdb. */
if (!get_trust_pw(domain, machine_pwd, &machine_account, &sec_chan_type)) if (!get_trust_pw_hash(domain, machine_pwd, &machine_account,
&sec_chan_type))
{ {
DEBUG(0, ("get_schannel_session_key_auth_ntlmssp: could not fetch " DEBUG(0, ("get_schannel_session_key_auth_ntlmssp: could not fetch "
"trust account password for domain '%s'\n", "trust account password for domain '%s'\n",

View File

@ -2235,8 +2235,8 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
neg_flags |= NETLOGON_NEG_SCHANNEL; neg_flags |= NETLOGON_NEG_SCHANNEL;
} }
if (!get_trust_pw(domain->name, mach_pwd, &account_name, if (!get_trust_pw_hash(domain->name, mach_pwd, &account_name,
&sec_chan_type)) &sec_chan_type))
{ {
cli_rpc_pipe_close(netlogon_pipe); cli_rpc_pipe_close(netlogon_pipe);
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO; return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;