Skip to content

Commit

Permalink
AD Explorer conversion fix for "bool" datatype (wasn't included in la…
Browse files Browse the repository at this point in the history
…st commit)
  • Loading branch information
lkarlslund committed Apr 19, 2022
1 parent 6cfb28f commit 6f0c723
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/integrations/activedirectory/collect/adexplorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ func (ad *AttributeDecoder) BinaryDecode(r binstruct.Reader) error {
if err != nil {
return err
}
value = strconv.FormatInt(int64(b), 10)
if b == 0 {
value = "false"
} else {
value = "true"
}
case ADSTYPE_INTEGER:
v, err := r.ReadUint32()
if err != nil {
Expand Down

0 comments on commit 6f0c723

Please sign in to comment.