Skip to content

Commit

Permalink
fix TGTDelegationEnabled (#168)
Browse files Browse the repository at this point in the history
* fix TGTDelegationEnabled

CrossOrganizationNoTGTDelegation being false does not enable TGT delegation. That is what my testing shows. It seems like this flag became meaningless after TGT delegation was disabled by default in 2019.
  • Loading branch information
JonasBK authored Oct 15, 2024
1 parent 48e136d commit 37ba516
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CommonLib/Processors/DomainTrustProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ public async IAsyncEnumerable<DomainTrust> 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;
Expand All @@ -111,4 +112,4 @@ public static TrustType TrustAttributesToType(TrustAttributes attributes)
return trustType;
}
}
}
}

0 comments on commit 37ba516

Please sign in to comment.