1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

winbindd: prepare find_auth_domain() transitive trusts on a DC

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13235

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2018-01-15 12:06:50 +01:00 committed by Ralph Boehme
parent c5bd18c002
commit af9a37aa19

View File

@ -395,8 +395,14 @@ struct winbindd_domain *find_auth_domain(uint8_t flags,
DEBUG(3, ("Authentication for domain [%s] refused "
"as it is not a trusted domain\n",
domain_name));
return NULL;
}
return domain;
if (domain->secure_channel_type != SEC_CHAN_NULL) {
return domain;
}
return domain->routing_domain;
}
if (strequal(domain_name, get_global_sam_name())) {