Skip to content

Commit

Permalink
wip: fix bad data types in sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Oct 16, 2024
1 parent 37ba516 commit 85dc474
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 114 deletions.
2 changes: 1 addition & 1 deletion src/CommonLib/OutputTypes/DomainTrust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class DomainTrust
public bool IsTransitive { get; set; }
public bool SidFilteringEnabled { get; set; }
public bool TGTDelegationEnabled { get; set; }
public string TrustAttributes { get; set; }
public long TrustAttributes { get; set; }
public TrustDirection TrustDirection { get; set; }
public TrustType TrustType { get; set; }
}
Expand Down
2 changes: 1 addition & 1 deletion src/CommonLib/Processors/DomainTrustProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async IAsyncEnumerable<DomainTrust> EnumerateDomainTrusts(string domain)
continue;
}

trust.TrustAttributes = ta.ToString();
trust.TrustAttributes = ta;
attributes = (TrustAttributes) ta;

trust.IsTransitive = !attributes.HasFlag(TrustAttributes.NonTransitive);
Expand Down
Loading

0 comments on commit 85dc474

Please sign in to comment.