on 09-05-2012 9:46 AM
Hi
have anyone provisioned AD accountExpires attribute of Active Directory from IDM.
accountExpires contain date on format 100 nanosecond intervals since January 1, 1601.
Reason I ask is tha does anyone have a ready javascipt to convert MX_VALIDTO to AD accountExpires format?
BR
Veli-Matti
Windows uses a FileTime (nanosecond since 1/1/1601).
So convert the current date string to a java time (milliseconds since 1/1/1970) and then something like:
(jsTimePeriod * 100000) + 116444736000000000;
116444736000000000 is the difference in nanoseconds between 1601 and 1970.
That should set the expiry date correctly. You might also want to check for 31/12/9999 and set the AD time to 0 (never expires)
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.