Skip to content

Commit

Permalink
chore: update dcfor pattern to use outboundwithdepth for optional gro…
Browse files Browse the repository at this point in the history
…up membership
  • Loading branch information
urangel committed Jan 30, 2024
1 parent 67d55f8 commit 1e2f3b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/go/analysis/ad/ad.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,15 +718,15 @@ func ADCSESC6aPath3Pattern(domainId graph.ID, enterpriseCAs, candidateTemplates

func ADCSESC6aPath4Pattern(domainId graph.ID, enterpriseCAs cardinality.Duplex[uint32]) traversal.PatternContinuation {
return traversal.NewPattern().
Outbound(query.Or(
Outbound(
query.And(
query.Kind(query.Relationship(), ad.MemberOf),
query.Kind(query.End(), ad.Group),
),
query.And(
query.KindIn(query.Relationship(), ad.Enroll),
query.KindIn(query.End(), ad.EnterpriseCA),
query.InIDs(query.End(), cardinality.DuplexToGraphIDs(enterpriseCAs)...)),
)).
Outbound(query.And(
query.KindIn(query.Relationship(), ad.Enroll),
query.KindIn(query.End(), ad.EnterpriseCA),
query.InIDs(query.End(), cardinality.DuplexToGraphIDs(enterpriseCAs)...),
)).
Outbound(query.And(
query.KindIn(query.Relationship(), ad.CanAbuseWeakCertBinding),
Expand Down

0 comments on commit 1e2f3b5

Please sign in to comment.