Skip to content

Commit

Permalink
Fixed accountexpires decoding, whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 10, 2023
1 parent 92c2f16 commit 391a863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/integrations/activedirectory/rawobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func EncodeAttributeData(attribute engine.Attribute, values []string) engine.Att
var attributevalue engine.AttributeValue
switch attribute {
// Add more things here, like time decoding etc
case CreationTime, PwdLastSet, LastLogon, LastLogonTimestamp, MSmcsAdmPwdExpirationTime, BadPasswordTime:
case AccountExpires, CreationTime, PwdLastSet, LastLogon, LastLogonTimestamp, MSmcsAdmPwdExpirationTime, BadPasswordTime:
if intval, err := strconv.ParseInt(value, 10, 64); err == nil {
if intval == 0 {
attributevalue = engine.AttributeValueInt(intval)
Expand All @@ -105,7 +105,7 @@ func EncodeAttributeData(attribute engine.Attribute, values []string) engine.Att
} else {
ui.Warn().Msgf("Failed to convert attribute %v value %2x to timestamp: %v", attribute.String(), value, err)
}
case AccountExpires, WhenChanged, WhenCreated, DsCorePropagationData,
case WhenChanged, WhenCreated, DsCorePropagationData,
MsExchLastUpdateTime, MsExchPolicyLastAppliedTime, MsExchWhenMailboxCreated,
GWARTLastModified, SpaceLastComputed:

Expand Down

0 comments on commit 391a863

Please sign in to comment.