Skip to content

Commit

Permalink
Commented code that produced logging stuff that slipped into a commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 30, 2021
1 parent 852287f commit 5006a78
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions modules/integrations/activedirectory/attributes.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package activedirectory

import (
"strings"

"github.com/lkarlslund/adalanche/modules/engine"
"github.com/lkarlslund/adalanche/modules/windowssecurity"
"github.com/rs/zerolog/log"
)

var (
Expand Down Expand Up @@ -85,12 +82,12 @@ var (
if !ok {
return
}
if a.Label() == "Account Operators" {
log.Warn().Msgf("GOTCHA %s", asid)
}
if strings.Contains(a.DN(), "CN=WellKnown") {
log.Warn().Msgf("GOTCHA WELLKNOWN %s (%s )with SID %s", a.Label(), a.DN(), asid)
}
// if a.Label() == "Account Operators" {
// log.Warn().Msgf("GOTCHA %s", asid)
// }
// if strings.Contains(a.DN(), "CN=WellKnown") {
// log.Warn().Msgf("GOTCHA WELLKNOWN %s (%s )with SID %s", a.Label(), a.DN(), asid)
// }
// if asid.Components() >= 3 && asid.Component(1) == 5 && asid.Component(2) == 32 {
if asid.Components() >= 3 && asid.Component(1) == 5 && asid.Component(2) != 21 {
return nil, engine.ErrDontMerge
Expand Down

0 comments on commit 5006a78

Please sign in to comment.