Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expiration date set in AD causes year 10000 error #1154

Open
elonden opened this issue Aug 14, 2024 · 0 comments
Open

Expiration date set in AD causes year 10000 error #1154

elonden opened this issue Aug 14, 2024 · 0 comments

Comments

@elonden
Copy link

elonden commented Aug 14, 2024

The "ldap3/protocol/formatters/formatters.py" on line 118 throws me an error when a expiration date in AD is set to 31/12/9999. As any timezone east of GMT this will roll over into year 10000 this try will show a "ValueError: year 10000 is out of range".

Unfortunately there is not much we can do on the AD side as the accounts get synced from another source which does not allow a non-expiration date and uses that 31/12/9999 as a "work around". So even if we would set the expiration date one day earlier, it would be back where it was on the next re-sync cycle.

Any idea how to get around this?

cheers
Erwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant