<?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: Change openVMS password through external application (VC++) in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917583#M11114</link>
    <description>Nandha,&lt;BR /&gt;&lt;BR /&gt;  This can be done, but if you want to do it properly (ie: impose dictionary checks, local policies, maintain history lifetime, generate audits and/or alarms etc...) it gets very complex. There's also the issue of "how can I (your user) trust that you won't capture and store my password?" If you're external to the box, how will the characters get transferred to the VMS system in a secure manner?&lt;BR /&gt;&lt;BR /&gt;  The easiest way to make it happen correctly and securely is a login session with /NEW_PASSWORD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Dec 2006 22:36:22 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2006-12-26T22:36:22Z</dc:date>
    <item>
      <title>Change openVMS password through external application (VC++)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917581#M11112</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I want to develop a application using C++ / VC++ (Windows application), through which i should be able to change the openVMS password.&lt;BR /&gt;&lt;BR /&gt;how to change the openVMS password through C++, &lt;BR /&gt;please let me know what step i need to follow, and if any code available , pleas let me know.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Nandha&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Dec 2006 06:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917581#M11112</guid>
      <dc:creator>nandha</dc:creator>
      <dc:date>2006-12-26T06:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change openVMS password through external application (VC++)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917582#M11113</link>
      <description>Change the password 3rd party, or for oneself?&lt;BR /&gt;&lt;BR /&gt;KISS... run a psuedo-telnet session from the windows application to VMS box using the old password to login, prompting for the new. Use all the window drssing you like, but let VMS do the validation and setting.&lt;BR /&gt;No VMS code, just windoze code.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.</description>
      <pubDate>Tue, 26 Dec 2006 09:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917582#M11113</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-26T09:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change openVMS password through external application (VC++)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917583#M11114</link>
      <description>Nandha,&lt;BR /&gt;&lt;BR /&gt;  This can be done, but if you want to do it properly (ie: impose dictionary checks, local policies, maintain history lifetime, generate audits and/or alarms etc...) it gets very complex. There's also the issue of "how can I (your user) trust that you won't capture and store my password?" If you're external to the box, how will the characters get transferred to the VMS system in a secure manner?&lt;BR /&gt;&lt;BR /&gt;  The easiest way to make it happen correctly and securely is a login session with /NEW_PASSWORD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Dec 2006 22:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917583#M11114</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-12-26T22:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change openVMS password through external application (VC++)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917584#M11115</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Thanks a lot for your reply,  &lt;BR /&gt;&lt;BR /&gt;I'll explain something more about my query, &lt;BR /&gt;&lt;BR /&gt;We are having a Business application which is running in a Windows NT machine (developed in C++/VC++), and Data base (DB) is in openVMS,  &lt;BR /&gt;&lt;BR /&gt;And through ODBC connection our application talks to VMS and get the data.&lt;BR /&gt;&lt;BR /&gt;If the password of VMS expire are not able to do anything through ODBC, we just get a message says that password expires, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So now we are suppose to develop a utility to our business application (Windows NT), which will communicate to the VMS and change the password of VMS. (This is not for any 3rd party.., it is for ourself, and no problem with the security issue all this machine are in our LAN connection, so no issue about the security and hacking password)&lt;BR /&gt;&lt;BR /&gt;I tried as Hein said.. , connected to the Telnet (using port 23) and using new_passowrd i tried changing the password, hmm it was a crude way i wrote the program..,&lt;BR /&gt;&lt;BR /&gt;i would like to get some more information about the step to do this and also about the error's to be handled.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Nandha&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Dec 2006 00:55:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917584#M11115</guid>
      <dc:creator>nandha</dc:creator>
      <dc:date>2006-12-27T00:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change openVMS password through external application (VC++)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917585#M11116</link>
      <description>Well, you would have to write a program which implement enough of the Telnet protocol to open port 23 to the VMS host and talk to it.&lt;BR /&gt;&lt;BR /&gt;Also check out the 'expect' tool.&lt;BR /&gt;&lt;BR /&gt;Error handling would be mostly returned string based.&lt;BR /&gt;Pass back to user and make them try again.&lt;BR /&gt;Check out chapter 1.6 "Login Failures" in then OpenVMS Userguide to get going.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_001.html#login_failures" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_001.html#login_failures&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For more help with the program... well that would be serious work which I and other would be happy to undertake for a reasonable financial compensation. Recognition point in the ITRC forum will not be enough :-)&lt;BR /&gt;&lt;BR /&gt;I would start by downloading existing telnet clients:&lt;BR /&gt;For examples:&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/TELNET#Free_with_Source_Code" target="_blank"&gt;http://en.wikipedia.org/wiki/TELNET#Free_with_Source_Code&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Actually I would probably use PERL&lt;BR /&gt;Something along the lines of:&lt;BR /&gt;&lt;BR /&gt; use Net::Telnet;&lt;BR /&gt; $telnet = new Net::Telnet ( Timeout=&amp;gt;10,&lt;BR /&gt;                             Errmode=&amp;gt;'die');&lt;BR /&gt; $telnet-&amp;gt;open('your.vms.host');&lt;BR /&gt; $telnet-&amp;gt;waitfor('/Username: $/i');&lt;BR /&gt; $telnet-&amp;gt;print($username_from_screen."/NEW_PASSWORD");&lt;BR /&gt; $telnet-&amp;gt;waitfor('/Password: $/i');&lt;BR /&gt; $telnet-&amp;gt;print($old_password);&lt;BR /&gt; $telnet-&amp;gt;waitfor('/New password:$/i');&lt;BR /&gt; $telnet-&amp;gt;print($new_password);&lt;BR /&gt; $output = $telnet-&amp;gt;waitfor('/Verification: $/i');&lt;BR /&gt; print $output;&lt;BR /&gt; $telnet-&amp;gt;print("logout");  # probably hardcoded for odbc users already &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;see: perl cookbook, chapter 18.6. Simulating Telnet from a Program&lt;BR /&gt;or: &lt;A href="http://www.perlfect.com/articles/telnet.shtml" target="_blank"&gt;http://www.perlfect.com/articles/telnet.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Be sure to take John's advise at heart:&lt;BR /&gt;&lt;BR /&gt;OpenVMS userguid: 1.7.5 Changing Passwords at Login&lt;BR /&gt;"Even if your current password has not yet expired, you can change your password when you log in to the system by including the /NEW_PASSWORD qualifier with your user name. When you enter the /NEW_PASSWORD qualifier after your user name, the system prompts you to set a new password immediately after login. &lt;BR /&gt;&lt;BR /&gt;The following example shows how to change your password when you log in:&lt;BR /&gt;  WILLOW - A member of the Forest Cluster&lt;BR /&gt;&lt;BR /&gt;Username: RWOODS/NEW_PASSWORD&lt;BR /&gt;Password:&lt;BR /&gt;         Welcome to OpenVMS on node WILLOW&lt;BR /&gt;            Last interactive login on Tuesday, 7-NOV-2002 10:20&lt;BR /&gt;            Last non-interactive login on Monday, 6-NOV-2002 14:20&lt;BR /&gt;&lt;BR /&gt;Your password has expired; you must set a new password to log in&lt;BR /&gt;New password:&lt;BR /&gt;Verification:&lt;BR /&gt; "&lt;BR /&gt;&lt;BR /&gt;Also read the rest of : Sections 1.1 - 1.9&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro.html#logging_in_system_sect" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro.html#logging_in_system_sect&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/change-openvms-password-through-external-application-vc/m-p/3917585#M11116</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-28T09:26:04Z</dc:date>
    </item>
  </channel>
</rss>

