Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/mode_audit/RessourceBasedConstrainedDelegations.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ func AuditRessourceBasedConstrainedDelegations(ldapHost string, ldapPort int, cr
if err != nil {
return fmt.Errorf("error creating security descriptor: %s", err)
}
for entryIndex, entry := range ntSecurityDescriptor.DACL.Entries {
for aceIndex, ace := range ntSecurityDescriptor.DACL.Entries {
var separator string
if entryIndex < len(ntSecurityDescriptor.DACL.Entries)-1 {
if aceIndex < len(ntSecurityDescriptor.DACL.Entries)-1 {
separator = "├──"
} else {
separator = "└──"
}

sidString := entry.Identity.SID.ToString()
sidString := ace.Identity.SID.ToString()
distingushedName, err := utils.LookupSID(&ldapSession, sidString)

// Format the string depending on if the SID lookup failed or not
Expand Down
6 changes: 3 additions & 3 deletions core/mode_find/RessourceBasedConstrainedDelegations.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ func FindRessourceBasedConstrainedDelegations(ldapHost string, ldapPort int, cre
if err != nil {
return fmt.Errorf("error creating security descriptor: %s", err)
}
for entryIndex, entry := range ntSecurityDescriptor.DACL.Entries {
for aceIndex, ace := range ntSecurityDescriptor.DACL.Entries {
var separator string
if entryIndex < len(ntSecurityDescriptor.DACL.Entries)-1 {
if aceIndex < len(ntSecurityDescriptor.DACL.Entries)-1 {
separator = "├──"
} else {
separator = "└──"
}

sidString := entry.Identity.SID.ToString()
sidString := ace.Identity.SID.ToString()
distingushedName, err := utils.LookupSID(&ldapSession, sidString)

// Format the string depending on if the SID lookup failed or not
Expand Down
Loading