mirror of
https://github.com/samba-team/samba.git
synced 2025-06-21 03:17:08 +03:00
passdb: check for is_dc_trusted_domain_situation() in get_trust_pw_hash().
Before fetching legacy password hash, check for trusted domain situation, but also fail if trusted domain support is not enabled. Michael
This commit is contained in:
parent
5f197c659e
commit
aa1b8287f4
@ -1616,7 +1616,7 @@ bool get_trust_pw_hash(const char *domain, uint8 ret_pwd[16],
|
|||||||
E_md4hash(pwd, ret_pwd);
|
E_md4hash(pwd, ret_pwd);
|
||||||
SAFE_FREE(pwd);
|
SAFE_FREE(pwd);
|
||||||
return true;
|
return true;
|
||||||
} else if (is_trusted_domain_situation(domain)) {
|
} else if (is_dc_trusted_domain_situation(domain)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user