(but trusted domain situation was found)
This completes the fix for bugs #5425 and #5451 by Steven Dannemann,
in that now no special cases are left uncovered.
Michael
/* if we are a DC and this is not our domain, then lookup an account
* for the domain trust */
- if (is_trusted_domain_situation(domain)) {
+ if (is_dc_trusted_domain_situation(domain)) {
+ if (!lp_allow_trusted_domains()) {
+ return false;
+ }
+
if (!pdb_get_trusteddom_pw(domain, ret_pwd, NULL,
&last_set_time))
{