<?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 Password Expiry in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43835#M8194</link>
    <description>&lt;P&gt;Fantastic, thankyou ! I made a minor alteration but it worked as I needed.&lt;/P&gt;

&lt;P&gt;index="activedir" (objectCategory="CN=Person*" AND userAccountControl!=514) &lt;BR /&gt;
| dedup displayName &lt;BR /&gt;
| eval DateLastChanged=pwdLastSet/10000000-11644473600 &lt;BR /&gt;
| where DateLastChanged &amp;lt; relative_time(now(),"-25d@d")&lt;BR /&gt;
| table DateLastChanged displayName | Sort -DateLastChanged&lt;BR /&gt;
| convert timeformat="%Y-%m-%d %H:%M:%S" ctime(DateLastChanged)&lt;/P&gt;

&lt;P&gt;Thanks again !&lt;/P&gt;

&lt;P&gt;Rhys&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2012 21:31:31 GMT</pubDate>
    <dc:creator>rhysjones</dc:creator>
    <dc:date>2012-01-05T21:31:31Z</dc:date>
    <item>
      <title>Active Directory Password Expiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43833#M8192</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a quandry. I am attempting to create n query that returns all the users whose passwords are due to expire in the next few days. I am attempting to get this from Active Directory monitoring logs.&lt;/P&gt;

&lt;P&gt;So, as an example, in an environment where the password change frequency is 30 days, give me a list of all the users who have NOT changed their passwords in the last 25 days. Exclude disabled accounts and computer accounts.&lt;/P&gt;

&lt;P&gt;The query below is kind of working (thanks to other questions previously asked by other people about formatting the AD date's !!) but I am missing something obvious. I have an account with a password that was changed on 8 Dec 2011 and again on 3 Jan 2012. I limit the query date range to the last 30 days (or the last 7 days, it still does it). I am successfully filtering out the most recent ones but the change on the 8th is still appearing. I was hoping the MAX statement would rid me of those.&lt;/P&gt;

&lt;P&gt;index="activedir" (objectCategory="CN=Person*" AND userAccountControl!=514) | eval target_date=(now() - (86400 * 25)) | eval human_time_pwd_change=strftime(pwdLastSet/10000000-11644473600,"%Y-%m-%d %H:%M:%S") |  convert timeformat="%Y-%m-%d %H:%M:%S" mktime(human_time_pwd_change) as TimeA | where TimeA&amp;lt;target_date | stats max(human_time_pwd_change) AS DateLastChanged by displayName&lt;/P&gt;

&lt;P&gt;I think I have been looking at it for too long. Can anyone give me any hints ?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;Rhys&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43833#M8192</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2020-09-28T10:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory Password Expiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43834#M8193</link>
      <description>&lt;P&gt;This seems overly complex to me and you are comparing times after they have been converted to strings which is unlikely to work. I would use the dedup command that only returns the first (latest) event by a field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="activedir" (objectCategory="CN=Person*" AND userAccountControl!=514) 
| dedup displayName 
| eval DateLastChanged=pwdLastSet/10000000-11644473600 
| where DateLastChanged &amp;lt; relative_time(now(),"-25d@d")
| table DateLastChanged displayName
| convert timeformat="%Y-%m-%d %H:%M:%S" DateLastChanged
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jan 2012 16:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43834#M8193</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-01-05T16:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory Password Expiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43835#M8194</link>
      <description>&lt;P&gt;Fantastic, thankyou ! I made a minor alteration but it worked as I needed.&lt;/P&gt;

&lt;P&gt;index="activedir" (objectCategory="CN=Person*" AND userAccountControl!=514) &lt;BR /&gt;
| dedup displayName &lt;BR /&gt;
| eval DateLastChanged=pwdLastSet/10000000-11644473600 &lt;BR /&gt;
| where DateLastChanged &amp;lt; relative_time(now(),"-25d@d")&lt;BR /&gt;
| table DateLastChanged displayName | Sort -DateLastChanged&lt;BR /&gt;
| convert timeformat="%Y-%m-%d %H:%M:%S" ctime(DateLastChanged)&lt;/P&gt;

&lt;P&gt;Thanks again !&lt;/P&gt;

&lt;P&gt;Rhys&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2012 21:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43835#M8194</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2012-01-05T21:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory Password Expiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43836#M8195</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;

&lt;P&gt;Similarly , &lt;/P&gt;

&lt;P&gt;source="dbmo-tail://idware/id_account" application=TFD [|inputlookup execSSO.csv |rename sso as owner]  |fields source,Lastpasswordchangedate,&lt;/P&gt;

&lt;P&gt;The above query is working good.   &lt;/P&gt;

&lt;P&gt;I have the last passwordchangedate field , it is showing the date . from that i want to determine new field for  password expire  date .  expire date time 90 days . &lt;/P&gt;

&lt;P&gt;any one can help me on this . &lt;/P&gt;

&lt;P&gt;i have one more question , &lt;/P&gt;

&lt;P&gt;10000000-11644473600     what is this ? any seconds format ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43836#M8195</guid>
      <dc:creator>siraj198204</dc:creator>
      <dc:date>2014-09-24T18:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory Password Expiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43837#M8196</link>
      <description>&lt;P&gt;Not sure what is different in 6.1.5, but I had to change&lt;BR /&gt;
... | eval DateLastChanged=pwdLastSet/10000000-11644473600 | ...&lt;BR /&gt;
to&lt;BR /&gt;
... | eval DateLastChanged = strptime(pwdLastSet, "%H:%M.%S %p, %a %m/%d/%Y") | ...&lt;/P&gt;

&lt;P&gt;else DateLastChanged came back null.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2014 17:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Active-Directory-Password-Expiry/m-p/43837#M8196</guid>
      <dc:creator>dale_lakes8769</dc:creator>
      <dc:date>2014-12-26T17:35:23Z</dc:date>
    </item>
  </channel>
</rss>

