Skip to content

The filter microsoft.ad.as_datetime fails when a user has "Account never expires" set. #182

Description

@FaxMac
SUMMARY

The filter microsoft.ad.as_datetime returns an overflow value error when the value of accountexpires is 9223372036854775807. This value represents when an AD user has set "Never expires" on their account

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION
Not relevant
COLLECTION VERSION
microsoft.ad collection
CONFIGURATION

OS / ENVIRONMENT

RHEL 9.4

STEPS TO REPRODUCE

pass the variable 9223372036854775807 to microsoft.ad.as_datetime filter.

EXPECTED RESULTS

An Overflow error. Making the rest of the playbook not run.

ACTUAL RESULTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions