<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Active directory- last login &amp; large numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539338#M691584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;The lastLogon attribute is not designed to provide real time logon information. &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;With default settings in place the lastLogontimeStamp will be 9-14 days behind the current date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Source: &lt;A href="http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx" title="http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx"&gt;“The LastLogonTimeStamp Attribute” – “What it was designed for and how it works” - Ask the Directory Services Team - Sit…&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;regards.janne&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 10:42:08 GMT</pubDate>
    <dc:creator>mr_janne</dc:creator>
    <dc:date>2013-08-28T10:42:08Z</dc:date>
    <item>
      <title>Active directory- last login &amp; large numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539337#M691583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to convert the last login time from AD into a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously I appreciate its held in integer8, but that conversion seems to work OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I have is that for some reason it is only working sometimes.... it has to be the data format but I can't figure it out at all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the various things I have tried, and below is a snapshot of the data which shows it weirdly working for some but not others:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;LOAD DISTINCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAMAccountName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastLogon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(num#(LastLogon)) as num,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(LastLogon,9) as left,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right(LastLogon,9) as right,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(LastLogon,9) &amp;amp; right(LastLogon,9) as combined,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evaluate(trim(LastLogon)) as lastlogon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Div(LastLogon, 1e10) &amp;amp; Mod(LastLogon, 1e10) As aLongNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(evaluate(trim(LastLogon)) / 864000000000 - 109207) as last_logon,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(evaluate(LastLogontimestamp) / 864000000000 - 109207) as last_logon_timestamp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/45959_pastedImage_3.png" style="width: 620px; height: 88px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539337#M691583</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2013-08-28T10:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Active directory- last login &amp; large numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539338#M691584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;The lastLogon attribute is not designed to provide real time logon information. &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;With default settings in place the lastLogontimeStamp will be 9-14 days behind the current date. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Source: &lt;A href="http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx" title="http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx"&gt;“The LastLogonTimeStamp Attribute” – “What it was designed for and how it works” - Ask the Directory Services Team - Sit…&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;regards.janne&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539338#M691584</guid>
      <dc:creator>mr_janne</dc:creator>
      <dc:date>2013-08-28T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Active directory- last login &amp; large numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539339#M691588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; yes, I had read that but at this time we're not concerned as we're simply trying to identify users who have not logged in for over 90 days so the 9-14 day delay / disparity isn't too concerning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concern here I believe is with the formatting of the data, unless that disparity is creating an un-convertable string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 10:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-directory-last-login-large-numbers/m-p/539339#M691588</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2013-08-28T10:47:08Z</dc:date>
    </item>
  </channel>
</rss>

