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

Problem with expire in AD #121

Open
mamico opened this issue Jan 10, 2024 · 3 comments
Open

Problem with expire in AD #121

mamico opened this issue Jan 10, 2024 · 3 comments

Comments

@mamico
Copy link
Contributor

mamico commented Jan 10, 2024

In pas.plugins.ldap and node.ext.ldap (https://github.com/conestack/node.ext.ldap/blob/299f3c056570d80b0e4346ffe441490489bade63/src/node/ext/ldap/ugm/expires.py#L105) I cannot find an implementation for account expire in MS Active Directory.

IMO the implementation must have 0 or 0x7FFFFFFFFFFF (9223372036854775807) as "no expire" and the value as the number of 100 nanosecond intervals from January 1, 1601 (UTC) (aka filetime).

This is the expire specification for MS Active Directory

https://learn.microsoft.com/en-us/windows/win32/adschema/a-accountexpires

@jensens
Copy link
Member

jensens commented Jan 31, 2024

Sorry, IIRC the implementation was written for OpenLDAP and we had no users with AD available for checking. A PR would be probably t best way to fix it. At least I have no AD for testing available.

@rnixx
Copy link
Contributor

rnixx commented Feb 6, 2024

Hi @mamico as commented here https://github.com/conestack/node.ext.ldap/blob/master/src/node/ext/ldap/ugm/expires.py#L20
the only account expiry implementation available right now is for OC shadowAccount. AD needs an implementation.

@mamico
Copy link
Contributor Author

mamico commented Feb 6, 2024

@jensens @rnixx thank you. Yes, I know, sorry if there was a misunderstanding.
My intention was to open a feature request if someone need/wants to implement it.
Otherwise if no one does, in my OSS contribution time or with a customer request, I can do a PR with the implementation.

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

No branches or pull requests

3 participants