Harry,<div><br></div><div>This is the pattern I use to parse the date in java: &quot;yyyyMMddHHmmss&#39;Z&#39;&quot;.  You can probably deduce what the values represent by looking at the pattern.  Also the times are stored in UTC so you&#39;ll probably want to convert that to the local timezone if you&#39;re going to display the date/time to the user.  </div>

<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Aaron</div><div><br><div class="gmail_quote">2011/1/21  <span dir="ltr">&lt;<a href="mailto:harry.devine@faa.gov">harry.devine@faa.gov</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><font size="2" face="sans-serif">I can get the passwordexpirationtime
value, but I&#39;m unsure what you mean by &quot;set the password expiration
to occur immediately&quot;.  I&#39;m coming from the Windows world, so
I&#39;m used to the &quot;User must change password at next logon&quot; checkbox.
 I don&#39;t see that anywhere on the GUI, so I&#39;m unclear how you set
that.</font>
<br>
<br><font size="2" face="sans-serif">Also, how do I manipulate the dates?
 I get something similar to 20110122161029Z (for example) for passwordexpirationtime.
 How do I convert that to a proper date format?  Also, I just
changed my account&#39;s password while testing, and I see that passwordexpirationtime
got reset to 19700101000000Z.  What does the 1970xxx value represent?</font>
<br>
<br><font size="2" face="sans-serif">Thanks,</font>
<br><div class="im"><font size="2" face="sans-serif">Harry</font>
<br>
<br><font size="2" face="sans-serif">Harry Devine<br>
Common ARTS Software Development<br>
AJT-144<br>
(609)485-4218<br>
<a href="mailto:Harry.Devine@faa.gov" target="_blank">Harry.Devine@faa.gov</a></font>
<br>
<br>
<br>
</div><table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><font size="1" face="sans-serif">James Roman &lt;<a href="mailto:james.roman@ssaihq.com" target="_blank">james.roman@ssaihq.com</a>&gt;</font>
<br>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><div class="im"><font size="1" face="sans-serif"><a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a></font>
</div></td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><font size="1" face="sans-serif">01/21/2011 10:17 AM</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">Re: [389-users] Determine when a password
is about to expire</font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Sent by:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:389-users-bounces@lists.fedoraproject.org" target="_blank">389-users-bounces@lists.fedoraproject.org</a></font></td></tr></tbody></table>
<br>
<hr noshade><div><div></div><div class="h5">
<br>
<br>
<br><font size="3">Most LDAP servers use a different schema than the Microsoft
version and work from the opposite direction. Try querying &quot;passwordexpirationtime&quot;.
You can do a search for the specific password schema with the following
info: 2.16.840.1.113730.3.2.12  passwordObject<br>
<br>
I think it is more common to:<br>
1. administratively set the password on a user account<br>
2. set the password expiration to occur immediately.<br>
3. set the passwordGraceUserTime for a time period that allows the user
to log in solely to change their password.<br>
<br>
However, you must explicitly program your site to gracefully handle this
situation (condition where passwordexpirationtime &lt; now &lt; passwordGraceUserTime)
, since the user&#39;s LDAP authentication attempt against the directory will
fail (with an error indicating the password has expired).<br>
<br>
On 01/21/2011 09:45 AM, </font><a href="mailto:harry.devine@faa.gov" target="_blank"><font size="3" color="blue"><u>harry.devine@faa.gov</u></font></a><font size="3">
wrote: </font>
<br><font size="2" face="sans-serif"><br>
I am in the process of creating a web-based mechanism to allow our users
to change their password on our new 389-ds server.  I would like to
display the date that their password is due to expire, and while Googling
around, I see a lot of references to pwdLastSet, but about 95% of the articles
are referring to Active Directory.  I don&#39;t see pwdLastSet amongst
the attributes in my default 389-ds setup.  Is it there, or do I have
to add that attribute to every account?</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
Also, I currently have my pages set up where, when the user logs in, it
detects our &#39;default&#39; password and forces them to change it.  Is there
some attribute in their account that I can set that I can key off of and
force them to change their password when they login to my site?</font><font size="3">
<br>
</font><font size="2" face="sans-serif"><br>
Thanks for any tips!</font><font size="3"> </font><font size="2" face="sans-serif"><br>
Harry</font><font size="3"> <br>
</font><font size="2" face="sans-serif"><br>
Harry Devine<br>
Common ARTS Software Development<br>
AJT-144<br>
(609)485-4218</font><font size="2" color="blue" face="sans-serif"><u><br>
</u></font><a href="mailto:Harry.Devine@faa.gov" target="_blank"><font size="2" color="blue" face="sans-serif"><u>Harry.Devine@faa.gov</u></font></a><font size="3">
</font>
<br><tt><font size="3"><br>
<br>
--<br>
389 users mailing list<br>
</font></tt><a href="mailto:389-users@lists.fedoraproject.org" target="_blank"><tt><font size="3" color="blue"><u>389-users@lists.fedoraproject.org</u></font></tt></a><tt><font size="3"><br>
</font></tt><a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank"><tt><font size="3" color="blue"><u>https://admin.fedoraproject.org/mailman/listinfo/389-users</u></font></tt></a>
<br><tt><font size="2">--<br>
389 users mailing list<br>
<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a><br>
</font></tt><a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank"><tt><font size="2">https://admin.fedoraproject.org/mailman/listinfo/389-users</font></tt></a>
<br>
<br></div></div><br>--<br>
389 users mailing list<br>
<a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br></blockquote></div><br></div>