Skip to main content
Announcements
Document boards are being consolidated, this board no longer allows NEW documents READ MORE

LDAP (Active Directory) 18-Digit FILETIME timestamp conversion for accountExpires

cancel
Showing results for 
Search instead for 
Did you mean: 
nathanwright
Contributor II
Contributor II

LDAP (Active Directory) 18-Digit FILETIME timestamp conversion for accountExpires

Last Update:

Sep 21, 2022 5:11:51 PM

Updated By:

Sue_Macaluso

Created date:

Feb 22, 2018 11:08:26 PM

I couldn't find any open posts about converting the accountExpires field from the LDAP.


Hopefully others searching in the future will stumble across this.


This worked for me:

if(left(accountExpires,11)/86400-109205 as [Expiry Date]

Looks like 01/01/1601 (0) was the default min and 09/10/4523 (9223372036854775807) was the default max. Because I didn't want to show these values I ended up using:

if(accountExpires=0 or accountExpires=9223372036854775807,'None',left(accountExpires,11)/86400-109205) as [Expiry Date]

If you aren't sure how to get the LDAP data, see rwunderlich‌ method in the below link.

Qlikview Cookbook: Load Users and Groups from Active Directory http://qlikviewcookbook.com/recipes/download-info/load-users-and-groups-from-active-directory/

Version history
Last update:
‎2022-09-21 05:11 PM
Updated by: