Skip to content

Commit

Permalink
Permit AD Explorer snapshots to contain blank strings (fix for issue #17
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lkarlslund committed Jun 20, 2022
1 parent 705c221 commit deaaa12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/integrations/activedirectory/collect/adexplorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,7 @@ func (ad *AttributeDecoder) BinaryDecode(r binstruct.Reader) error {
return fmt.Errorf("unhandled attribute type %v", ad.attributeType)
}

if value != "" {
ad.results[i] = value
} else {
return fmt.Errorf("no results for attribute type %v", ad.attributeType)
}
ad.results[i] = value
}

return nil
Expand Down

0 comments on commit deaaa12

Please sign in to comment.