diff --git a/src/CommonLib/Processors/DomainTrustProcessor.cs b/src/CommonLib/Processors/DomainTrustProcessor.cs index 1df373ec..16681f9d 100644 --- a/src/CommonLib/Processors/DomainTrustProcessor.cs +++ b/src/CommonLib/Processors/DomainTrustProcessor.cs @@ -86,8 +86,9 @@ public async IAsyncEnumerable EnumerateDomainTrusts(string domain) trust.TGTDelegationEnabled = !attributes.HasFlag(TrustAttributes.QuarantinedDomain) && - (attributes.HasFlag(TrustAttributes.CrossOrganizationEnableTGTDelegation) - || !attributes.HasFlag(TrustAttributes.CrossOrganizationNoTGTDelegation)); + (attributes.HasFlag(TrustAttributes.WithinForest) || + attributes.HasFlag(TrustAttributes.CrossOrganizationEnableTGTDelegation)); + trust.TrustType = TrustAttributesToType(attributes); yield return trust; @@ -111,4 +112,4 @@ public static TrustType TrustAttributesToType(TrustAttributes attributes) return trustType; } } -} \ No newline at end of file +}