mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
winbindd: initialize foreign domain as AD based on trust
Based on trust parameters, initialize the active_directory member of domain object to true. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11691 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
c65841a3bd
commit
d0aa5d0574
@ -250,6 +250,9 @@ add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc,
|
||||
if (sid != NULL) {
|
||||
sid_copy(&domain->sid, sid);
|
||||
}
|
||||
domain->domain_flags = tdc->trust_flags;
|
||||
domain->domain_type = tdc->trust_type;
|
||||
domain->domain_trust_attribs = tdc->trust_attribs;
|
||||
|
||||
/* Is this our primary domain ? */
|
||||
if (strequal(domain_name, get_global_sam_name()) &&
|
||||
@ -267,6 +270,10 @@ add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc,
|
||||
if (lp_security() == SEC_ADS) {
|
||||
domain->active_directory = true;
|
||||
}
|
||||
} else if (!domain->internal) {
|
||||
if (domain->domain_type == LSA_TRUST_TYPE_UPLEVEL) {
|
||||
domain->active_directory = true;
|
||||
}
|
||||
}
|
||||
|
||||
/* Link to domain list */
|
||||
|
Loading…
Reference in New Issue
Block a user