Skip to content

Commit

Permalink
update default tier zero (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK authored Dec 20, 2024
1 parent 67e986c commit 4f5d10e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/go/analysis/ad/ad.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const (
AuthenticatedUsersSuffix = "-S-1-5-11"
EveryoneSuffix = "-S-1-1-0"
AdminSDHolderDNPrefix = "CN=ADMINSDHOLDER,CN=SYSTEM,"
DnsAdminsDNPrefix = "CN=DNSADMINS,"
)

func TierZeroWellKnownSIDSuffixes() []string {
Expand Down Expand Up @@ -99,22 +98,6 @@ func FetchWellKnownTierZeroEntities(ctx context.Context, db graph.Database, doma
}
}

// DnsAdmins
if err := tx.Nodes().Filterf(func() graph.Criteria {
return query.And(
query.KindIn(query.Node(), ad.Group),
query.StringStartsWith(query.NodeProperty(ad.DistinguishedName.String()), DnsAdminsDNPrefix),
query.Equals(query.NodeProperty(ad.DomainSID.String()), domainSID),
)
}).Fetch(func(cursor graph.Cursor[*graph.Node]) error {
for node := range cursor.Chan() {
nodes.Add(node)
}
return cursor.Error()
}); err != nil {
return err
}

// AdminSDHolder
if err := tx.Nodes().Filterf(func() graph.Criteria {
return query.And(
Expand Down

0 comments on commit 4f5d10e

Please sign in to comment.