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

r24990: Kill an incredible amount of trailing whitespaces...

Further reformat get_trust_pw to conform to coding rules.

Michael
This commit is contained in:
Michael Adam 2007-09-07 08:54:48 +00:00 committed by Gerald (Jerry) Carter
parent e746aaaf4d
commit b9e76a479e

View File

@ -1527,28 +1527,31 @@ BOOL get_trust_pw(const char *domain, uint8 ret_pwd[16], uint32 *channel)
DOM_SID sid;
char *pwd;
time_t last_set_time;
/* if we are a DC and this is not our domain, then lookup an account
for the domain trust */
if ( IS_DC && !strequal(domain, lp_workgroup()) && lp_allow_trusted_domains() ) {
if (!pdb_get_trusteddom_pw(domain, &pwd, &sid, &last_set_time)) {
if (IS_DC && !strequal(domain, lp_workgroup()) &&
lp_allow_trusted_domains())
{
if (!pdb_get_trusteddom_pw(domain, &pwd, &sid, &last_set_time))
{
DEBUG(0, ("get_trust_pw: could not fetch trust "
"account password for trusted domain %s\n",
domain));
return False;
}
*channel = SEC_CHAN_DOMAIN;
E_md4hash(pwd, ret_pwd);
SAFE_FREE(pwd);
return True;
}
/* Just get the account for the requested domain. In the future this
* might also cover to be member of more than one domain. */
if (secrets_fetch_trust_account_password(domain, ret_pwd,
&last_set_time, channel))
return True;
@ -1558,4 +1561,3 @@ BOOL get_trust_pw(const char *domain, uint8 ret_pwd[16], uint32 *channel)
return False;
}
/* END */