<?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: Detecting expired passwords in a C program in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490199#M29253</link>
    <description>Here's a code snippet. After reviewing the replies to this, I'd also like to ask "what" is the preferred way to do this? &lt;BR /&gt;&lt;BR /&gt;The value in uflags (from attachment) is 0 and return_status = 1.&lt;BR /&gt;&lt;BR /&gt;Anyhow...thanks for the help</description>
    <pubDate>Mon, 21 Feb 2005 13:46:14 GMT</pubDate>
    <dc:creator>Scott Dawson_2</dc:creator>
    <dc:date>2005-02-21T13:46:14Z</dc:date>
    <item>
      <title>Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490196#M29250</link>
      <description>I have a web interface to an openVMS applicatin. I have routines to add users, validate pswd, modify pswd. I am having a heck of a time checking if a pswd is expired. When using the sys$getuai utility, and checking the UAI_Flags, I get a successful status but a 0 for result. Even when the accnt is expired. What's the correct way to check for expired password from a C program?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 21 Feb 2005 12:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490196#M29250</guid>
      <dc:creator>Scott Dawson_2</dc:creator>
      <dc:date>2005-02-21T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490197#M29251</link>
      <description>can you post the code fragment as a txt attachment here?</description>
      <pubDate>Mon, 21 Feb 2005 12:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490197#M29251</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-02-21T12:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490198#M29252</link>
      <description>&lt;BR /&gt;pwd_expired is tricky, non-intuitive, as there is the flag bit at play, as well as a date stamp. A simple MODI/FLA=PWDEXPI will mark the date field, NOT the flag bit. Witness:&lt;BR /&gt;&lt;BR /&gt;UAF&amp;gt; SHOW TEST&lt;BR /&gt;:&lt;BR /&gt;Flags:&lt;BR /&gt;:&lt;BR /&gt;Pwdchange:  18-FEB-2005 14:59&lt;BR /&gt;:&lt;BR /&gt;UAF&amp;gt; MODI TEST/FLAG=PWDEXPIRED&lt;BR /&gt;Flags:&lt;BR /&gt;:&lt;BR /&gt;Pwdchange:      (pre-expired)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or with a little tool that I wrote and will attach:&lt;BR /&gt;&lt;BR /&gt;$ MCR AUTHORIZE MODI TEST /NOPWDEXPI&lt;BR /&gt;%UAF-I-MDFYMSG, user record(s) updated&lt;BR /&gt;$ GETUAI TEST USERNAME FLAGS PWD_DATE&lt;BR /&gt;USERNAME,FLAGS,PWD_DATE&lt;BR /&gt;TEST,00000000,21-FEB-2005 13:21:18.70&lt;BR /&gt;$ MCR AUTHORIZE MODI TEST /PWDEXPI&lt;BR /&gt;%UAF-I-MDFYMSG, user record(s) updated&lt;BR /&gt;$ GETUAI TEST USERNAME FLAGS PWD_DATE&lt;BR /&gt;USERNAME,FLAGS,PWD_DATE&lt;BR /&gt;TEST,00000000,   0 00:00:00.00&lt;BR /&gt;&lt;BR /&gt;The PWD_EXPIRED flag will only be set if&lt;BR /&gt; &lt;BR /&gt;1. The user logs in&lt;BR /&gt;2. The password has expired (see below)&lt;BR /&gt;3. The user is set not to be forced to change an expired password on login i.e. DISFORCE_PWD_CHANGE is set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;HP Internal folks... This is discussed in:&lt;BR /&gt;VAXAXP::NOTES$ARCHIVE:VMSNOTES_V12 topic 1783&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Feb 2005 13:26:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490198#M29252</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-02-21T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490199#M29253</link>
      <description>Here's a code snippet. After reviewing the replies to this, I'd also like to ask "what" is the preferred way to do this? &lt;BR /&gt;&lt;BR /&gt;The value in uflags (from attachment) is 0 and return_status = 1.&lt;BR /&gt;&lt;BR /&gt;Anyhow...thanks for the help</description>
      <pubDate>Mon, 21 Feb 2005 13:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490199#M29253</guid>
      <dc:creator>Scott Dawson_2</dc:creator>
      <dc:date>2005-02-21T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490200#M29254</link>
      <description>After reviewing the above posts and the limits of checking flags. Would a better approach be to check the date of pwdchange and add the pwdlifetime. If the result is &amp;lt; current datetime, I force them to reset the password. I was hoping for a simple check. &lt;BR /&gt;&lt;BR /&gt;Let me know if I'm going in the wrong direction. &lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Mon, 21 Feb 2005 14:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490200#M29254</guid>
      <dc:creator>Scott Dawson_2</dc:creator>
      <dc:date>2005-02-21T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490201#M29255</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;The UAI$M_PWD_EXPIRED flag is set when the user tryes to login and his password is expired. Please read the Description section of the SYS$QETUAI system service:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/732FINAL/4527/4527pro_005.html#index_x_630" target="_blank"&gt;http://h71000.www7.hp.com/doc/732FINAL/4527/4527pro_005.html#index_x_630&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It gives you an explanation how the flag is set.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Mon, 21 Feb 2005 15:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490201#M29255</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-02-21T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490202#M29256</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;Would a better approach be to check the date of pwdchange and add the pwdlifetime. If the result is &amp;lt; current datetime, I force them to reset the password. I was hoping for a simple check. &lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;That's exactly what LOGINOUT does. As per the manual:&lt;BR /&gt;"During a normal login when the UAI$V_DISFORCE_PWD_CHANGE bit is not set, the system compares UAI$_PWD_DATE against UAI$_PWD_LIFETIME and, if expired, forces the user to change the password. With this configuration, the UAI$V_PWD_EXPIRED bit is not set."&lt;BR /&gt;&lt;BR /&gt;So, your on the right track.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2005 02:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490202#M29256</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2005-02-22T02:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting expired passwords in a C program</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490203#M29257</link>
      <description>It appears you have to check that the password last modified date plus the password life time value are older then the current date &amp;amp; time.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2005 06:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-expired-passwords-in-a-c-program/m-p/3490203#M29257</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-02-22T06:08:09Z</dc:date>
    </item>
  </channel>
</rss>

