on 05-13-2014 8:46 PM
Hi:
I am trying to read LastLogonTimestamp from Active Directory into IdM. But this attribute is not usable for IdM. How can I convert this attribute to readable format for IdM?
Regards
Andy
In the source statement of the To IDStore pass apply the case to the LogonTimeStamp column (lastlogon is not synced amongst domain controllers I think).
Example for SQL Server:
select
case when lastlogon = '' then NULL
else dateadd(mi,(cast(lastlogon as BIGINT)/600000000) - 157258080 + DATEDIFF(Minute,GetUTCDate(),GetDate()),0)
end lastLogon
from test_ad_data
Adapted from conversion example I found on the net by "Number2 (John Nelson)"
Br,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the value in same format as for valid to: http://scn.sap.com/thread/3232367
I have no idea but would try calculation based on Vellu's post.
regards, Tero
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy,
how does it look like when you print it to log? Can you share the string or a screenshot?
Cheers
Norman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.