<?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: Userid/Password verification within a BASIC application in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475763#M31775</link>
    <description>Dan,&lt;BR /&gt;&lt;BR /&gt;You might also want to take a look at the "Guide to System Security". &lt;BR /&gt;&lt;BR /&gt;In particular, you want to consider carefully what this implies. You need to be careful to ensure that this does not lead to a security hole. The most simple minded approach does create a security hazard by processing the Management account/password pair. &lt;BR /&gt;&lt;BR /&gt;There are several possibilities. Which one is the right one depends upon the exact details of your application (one that I have used on several occasions is DECnet logical links). &lt;BR /&gt;&lt;BR /&gt;If the above is unclear, or I can be of further assistance, please let me know.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
    <pubDate>Tue, 01 Feb 2005 11:25:54 GMT</pubDate>
    <dc:creator>Robert Gezelter</dc:creator>
    <dc:date>2005-02-01T11:25:54Z</dc:date>
    <item>
      <title>Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475760#M31772</link>
      <description>I have a BASIC program that when the user has "done something wrong" it requires their manager to clear the "problem" while the user is still executing the application.  I would like the manager to come over to the user's terminal and from an application prompt, enter their VMS userid and password (concealing the password, of course) thus identifying themselves to the application, have the application verify the combination is correct and then give the manager access to the functions that will clear the "problem".&lt;BR /&gt;&lt;BR /&gt;Is there a system service I can call from a BASIC application to verify the userid/password combination? If so, does someone have an example in BASIC of how to do so.  I'm not a very good at understanding the system service documentation and work best from examples.&lt;BR /&gt;&lt;BR /&gt;Many thanks for any assistance you can provide,&lt;BR /&gt;Dan Herron&lt;BR /&gt;Kittles Furniture&lt;BR /&gt;Indpls, IN</description>
      <pubDate>Tue, 01 Feb 2005 09:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475760#M31772</guid>
      <dc:creator>Dan Herron</dc:creator>
      <dc:date>2005-02-01T09:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475761#M31773</link>
      <description>the basic steps would be to read the username, use SYS$GETUAI to obtain the users record. Read the password, use SYS$HASH_PASSWORD to hash the password and compare the result with the value in the user record. You may also want to look at SYS$AUDIT_EVENTW&lt;BR /&gt;&lt;BR /&gt;Example code for calling these system services can be found&lt;BR /&gt;&lt;A href="http://www.eight-cubed.com/examples/framework.php?file=sys_getuai.c" target="_blank"&gt;http://www.eight-cubed.com/examples/framework.php?file=sys_getuai.c&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.eight-cubed.com/examples/framework.php?file=sys_audit_event.c" target="_blank"&gt;http://www.eight-cubed.com/examples/framework.php?file=sys_audit_event.c&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wwwvms.mppmu.mpg.de/vmssig/src/FOR/UAI_EXAMPLE.FOR" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/vmssig/src/FOR/UAI_EXAMPLE.FOR&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 09:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475761#M31773</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-02-01T09:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475762#M31774</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You might also have a look at the SYS$ACM system service&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/732FINAL/4527/4527pro.html#acm_001" target="_blank"&gt;http://h71000.www7.hp.com/doc/732FINAL/4527/4527pro.html#acm_001&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/5841/5841pro_contents_010.html#toc_chapter_33" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/5841/5841pro_contents_010.html#toc_chapter_33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Greetz,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 10:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475762#M31774</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2005-02-01T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475763#M31775</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;You might also want to take a look at the "Guide to System Security". &lt;BR /&gt;&lt;BR /&gt;In particular, you want to consider carefully what this implies. You need to be careful to ensure that this does not lead to a security hole. The most simple minded approach does create a security hazard by processing the Management account/password pair. &lt;BR /&gt;&lt;BR /&gt;There are several possibilities. Which one is the right one depends upon the exact details of your application (one that I have used on several occasions is DECnet logical links). &lt;BR /&gt;&lt;BR /&gt;If the above is unclear, or I can be of further assistance, please let me know.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Tue, 01 Feb 2005 11:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475763#M31775</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2005-02-01T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475764#M31776</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;In this thread (which has a similar problem as you), I posted a litle MACRO program which gets&lt;BR /&gt;the password of the current user and verify it.&lt;BR /&gt;You can use it as an example.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=743707" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=743707&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 13:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475764#M31776</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-02-01T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475765#M31777</link>
      <description>All the system service examples require privilege. For a simple, non-privileged test, use DECnet. Just OPEN a file using a network filespec:&lt;BR /&gt;&lt;BR /&gt;  0"username password"::PASSCHECK.TMP&lt;BR /&gt;&lt;BR /&gt;if successful the password is correct.&lt;BR /&gt;&lt;BR /&gt;See also my example using PIPE at &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=743707" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=743707&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Since it's in DCL, you would have to SPAWN it from BASIC.</description>
      <pubDate>Tue, 01 Feb 2005 15:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475765#M31777</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-02-01T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475766#M31778</link>
      <description>John wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; open 0"username password"::PASSCHECK.TMP&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; if successful the password is correct.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; See also my example using PIPE at &lt;BR /&gt;:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Since it's in DCL, you would have to &lt;BR /&gt;SPAWN it from BASIC. &lt;BR /&gt;&lt;BR /&gt;Just ot be perfectly clear, you can just use a BASIC OPEN statetement and use the STANDARD error handling to determine whether it worked (now close it!), or failed.&lt;BR /&gt;And you can use NL: as the 'file' (or login.com).&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 17:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475766#M31778</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-02-01T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Userid/Password verification within a BASIC application</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475767#M31779</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;A further note on the integrity of the "Managers Password" and the override process.&lt;BR /&gt;&lt;BR /&gt;Care needs to be exercised. Particularly since this is supposed to be an auditable interface. I am working with no context, but if this is going to be audited at some point, the following comments apply:&lt;BR /&gt;- the application program should not get the manager's password.&lt;BR /&gt;- the application should pass control to a separate, limited program which does the actual override.&lt;BR /&gt;- I don't have an indication of scale, but consideration should be given to a "Dongle", challenge/response, or similar system. The simple "Manager's Password" approach is vulnerable to various attacks, including: playback, spoofing, and unauthorized code modifications.&lt;BR /&gt;&lt;BR /&gt;As I mentioned on opening, the overide/authorize function can be done correctly, in a way which will stand up to audit scrutiny, but care must be exercised.&lt;BR /&gt;&lt;BR /&gt;In these days of Sarbenes-Oxley, for example, auditing standards for production applications have increased substantially, with more concern being paid to separation of program development staff from production accounting data. Overrides are of particular concern to auditors.&lt;BR /&gt;&lt;BR /&gt;I hope that the above is helpful. If I have been unclear, please let me know.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Wed, 02 Feb 2005 05:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/userid-password-verification-within-a-basic-application/m-p/3475767#M31779</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2005-02-02T05:36:15Z</dc:date>
    </item>
  </channel>
</rss>

