<?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: System Management Utilities Reference (UAI$_PWD_LIFETIME) in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825540#M77664</link>
    <description>FWIW : I have a pascal program that also requests the lifetime and it returns "(None)". It doesn't do any processing on the return value (in a string).&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Jul 2006 10:12:07 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2006-07-18T10:12:07Z</dc:date>
    <item>
      <title>System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825539#M77663</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;When i used System Management Utilities Reference (UAI$_PWD_LIFETIME) in the C program to get the value of pwdlifetime from sysuaf, i can get the value (1 00:00:00.005:23.98) for specific user if pwdlifetime is set to 1.&lt;BR /&gt;&lt;BR /&gt;However, i can get the value (17-NOV-1858 00:00:00.00) if the pwdlifetime is set to (NONE).&lt;BR /&gt;&lt;BR /&gt;I don't know why the value has been changed to date format.&lt;BR /&gt;&lt;BR /&gt;Is it 17-Nov-1858 represents (none) in the sysuaf? if yes, Why?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for answer !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sentosa&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jul 2006 09:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825539#M77663</guid>
      <dc:creator>Sentosa</dc:creator>
      <dc:date>2006-07-18T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825540#M77664</link>
      <description>FWIW : I have a pascal program that also requests the lifetime and it returns "(None)". It doesn't do any processing on the return value (in a string).&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jul 2006 10:12:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825540#M77664</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-07-18T10:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825541#M77665</link>
      <description>Sentosa,&lt;BR /&gt;&lt;BR /&gt;Yes, 17-Nov-1858 is special.&lt;BR /&gt;It is the 'null' date for OpenVMS.&lt;BR /&gt;Just google for further details... or... get this... read the OpenVMS Documentatio... or, read teh OpenVMS FAQ!&lt;BR /&gt;&lt;BR /&gt;Positive Time values are DATE+TIME in OpenVMS&lt;BR /&gt;Negative values are DELTA TIMES.&lt;BR /&gt;&lt;BR /&gt;You need to special case 0.&lt;BR /&gt;&lt;BR /&gt;There are lots of existing tools in this space. Google for them!&lt;BR /&gt;&lt;BR /&gt;I posted one of those tools in a prior post on this subject i made:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=819355" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=819355&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Hein.&lt;BR /&gt;HvdH Performance Consulting.</description>
      <pubDate>Tue, 18 Jul 2006 10:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825541#M77665</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-07-18T10:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825542#M77666</link>
      <description>Sentosa, as the others wrote we also just change the field. Looks much better in reports and saves questions. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      if ( strstr(ascii_lastlogin_i,"17-NOV-1858") ) strcpy(ascii_lastlogin_i,"NEVER"); &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jul 2006 17:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825542#M77666</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2006-07-18T17:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825543#M77667</link>
      <description>Hi Hein.,&lt;BR /&gt;&lt;BR /&gt;How to set negative values in the pwdlifetime in the mc authorize?&lt;BR /&gt;&lt;BR /&gt;Could you explain the meaning of "You need to special case 0"?&lt;BR /&gt;&lt;BR /&gt;How can i check the existing tools in the space?&lt;BR /&gt;&lt;BR /&gt;Thank you for your help &lt;BR /&gt;&lt;BR /&gt;Sentosa</description>
      <pubDate>Wed, 19 Jul 2006 01:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825543#M77667</guid>
      <dc:creator>Sentosa</dc:creator>
      <dc:date>2006-07-19T01:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825544#M77668</link>
      <description>The "problem" is not in uaf access routine.&lt;BR /&gt;&lt;BR /&gt;The "problem" is, that the value for the pwd lifetime is a DELTA time. Delta times are represented as negative quadword values in memory.&lt;BR /&gt;&lt;BR /&gt;When you ask for the uaf value, you cal get&lt;BR /&gt;-) a value of zero (binary 0) or&lt;BR /&gt;-) a negative binary quadword value&lt;BR /&gt;&lt;BR /&gt;When you use any routine to format the uad time into an ascii representation the zerop value is translated into 17-Nov-1858 (the famous vms null date :-) ). A negative value is formatted as a delta time (time intervall) string (n nn:nn:...)&lt;BR /&gt;&lt;BR /&gt;As there is no representation for a negative 0 VMS cannot detect the formatting you would expect (either date or delta time with all values 0).&lt;BR /&gt;&lt;BR /&gt;Its up to you to check for 0 and process it directly.&lt;BR /&gt;&lt;BR /&gt;An for the question how to enter:&lt;BR /&gt;-) using DCL you do not enter negative values, you enter delte time values which are represented as negative values&lt;BR /&gt;-) using some code this should be transparent to you too if you use some of the standard conversion routines.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;BR /&gt;&lt;BR /&gt;Martin</description>
      <pubDate>Wed, 19 Jul 2006 01:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825544#M77668</guid>
      <dc:creator>Martin Michalecz</dc:creator>
      <dc:date>2006-07-19T01:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825545#M77669</link>
      <description>We convert the time format&lt;BR /&gt;&lt;BR /&gt;For examaple&lt;BR /&gt;&lt;BR /&gt;    if (((status = SYS$ASCTIM(0, &amp;amp;lastlogin_i_desc, lastlogin_i, 0)) &amp;amp;1) != 1)&lt;BR /&gt;            LIB$STOP(status);&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jul 2006 02:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825545#M77669</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2006-07-19T02:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825546#M77670</link>
      <description>Thomas,&lt;BR /&gt;&lt;BR /&gt;I think there is a small difference between your example and the original question.&lt;BR /&gt;&lt;BR /&gt;PWD_LIFETIME is a delta time (time interval) while the last login time is always a date time (a positive value in memory).&lt;BR /&gt;&lt;BR /&gt;Martin</description>
      <pubDate>Wed, 19 Jul 2006 02:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825546#M77670</guid>
      <dc:creator>Martin Michalecz</dc:creator>
      <dc:date>2006-07-19T02:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825547#M77671</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;What is the meaning of  positive time values &amp;amp; negative time values in the memory?&lt;BR /&gt;If pwdlifetime set to 0, (none) will display in mc authorize sh command.&lt;BR /&gt;So, 0 is positive or negative values?&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer&lt;BR /&gt;&lt;BR /&gt;Sentosa</description>
      <pubDate>Wed, 19 Jul 2006 20:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825547#M77671</guid>
      <dc:creator>Sentosa</dc:creator>
      <dc:date>2006-07-19T20:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: System Management Utilities Reference (UAI$_PWD_LIFETIME)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825548#M77672</link>
      <description>Sentosa,&lt;BR /&gt;&lt;BR /&gt;You really need to make a quick read through:&lt;BR /&gt;"OpenVMS Programming Concepts Manual"&lt;BR /&gt;"27.1 System Time Format"&lt;BR /&gt;27.1 System Time Format&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/5841/5841pro_070.html#111_thesystemtimeformat" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/5841/5841pro_070.html#111_thesystemtimeformat&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; What is the meaning of positive time values &amp;amp; negative time values in the memory?&lt;BR /&gt;&lt;BR /&gt;Time is stored as a 64 bite signed int.&lt;BR /&gt;Negative values have the MSB bit set.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; If pwdlifetime set to 0, (none) will display in mc authorize sh command.&lt;BR /&gt;&lt;BR /&gt;That's because authorize special cases the binary value 0.&lt;BR /&gt;You should probably also do that.&lt;BR /&gt;Somethig along the lines of...&lt;BR /&gt;   if (time == 0) {&lt;BR /&gt;      offset++ = sprintf (&amp;amp;display_buffer[offset], "(none)");&lt;BR /&gt;   } else {&lt;BR /&gt;      stat = sys$asctim ....&lt;BR /&gt;   &lt;BR /&gt;&amp;gt;&amp;gt; So, 0 is positive or negative values?&lt;BR /&gt;&lt;BR /&gt;VMS displays a date. Ergo: Positive!&lt;BR /&gt;IMHO this in unfortunate, as a 0 delta time is much more useful than a 17-Nov-1858 date.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.</description>
      <pubDate>Wed, 19 Jul 2006 23:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-management-utilities-reference-uai-pwd-lifetime/m-p/3825548#M77672</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-07-19T23:01:30Z</dc:date>
    </item>
  </channel>
</rss>

