<?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: A perl script that interacts with user authentication. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216773#M714520</link>
    <description>My snippet does not need to know where the password file is: getwduid () should and does. That looks up the password entry by user ID. If you wanna do it by name, use getpwnam ().&lt;BR /&gt;&lt;BR /&gt;# perldoc -f getpwnam&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
    <pubDate>Fri, 26 Mar 2004 12:07:10 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2004-03-26T12:07:10Z</dc:date>
    <item>
      <title>A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216767#M714514</link>
      <description>Based on this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=502489" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=502489&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'd like to see a perl script that does the following:&lt;BR /&gt;&lt;BR /&gt;1) Authenticates that the user and password entered on a web form and only proceeeds if the user is properly authenticated.&lt;BR /&gt;2) An evaulation of the security risk of having such a script operate on the public Internet.&lt;BR /&gt;&lt;BR /&gt;My squirrelmail authenticates in php just fine, I don't think its a security risk.&lt;BR /&gt;&lt;BR /&gt;3) Script must be based on the latest verion of formscript. The formmail script that many use to send mail.&lt;BR /&gt;&lt;BR /&gt;I'm attaching a copy of the perl script and will award 10 points to a working mod I can integrate into one of my scripts.&lt;BR /&gt;&lt;BR /&gt;Please assume the fieldnames are thus:&lt;BR /&gt;&lt;BR /&gt;username=username&lt;BR /&gt;password=password&lt;BR /&gt;&lt;BR /&gt;Unless this is a spam risk.&lt;BR /&gt;&lt;BR /&gt;I have searched &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050&lt;/A&gt; and bit found anything that meets that spec.&lt;BR /&gt;&lt;BR /&gt;Assume the system is NOT trusted but it would be useful and worth another rabbit if shadow passwords were in force.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 12 Mar 2004 00:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216767#M714514</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-12T00:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216768#M714515</link>
      <description>I would happily hand a bunny to anyone that could give me a working perl snippet that did the following:&lt;BR /&gt;&lt;BR /&gt;1)Took the user id and password from a form and in a relatively safe method authenticated the user against /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;It sounds like a slam dunk for A. Clay or Merijn.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Mar 2004 09:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216768#M714515</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-26T09:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216769#M714516</link>
      <description># perldoc -f crypt would show you this:&lt;BR /&gt;&lt;BR /&gt;                   $pwd = (getpwuid ($&amp;lt;))[1];&lt;BR /&gt;&lt;BR /&gt;                   system "stty -echo";&lt;BR /&gt;                   print "Password: ";&lt;BR /&gt;                   chomp ($word = &lt;STDIN&gt;);&lt;BR /&gt;                   print "\n";&lt;BR /&gt;                   system "stty echo";&lt;BR /&gt;&lt;BR /&gt;                   if (crypt ($word, $pwd) ne $pwd) {&lt;BR /&gt;                       die "Sorry...\n";&lt;BR /&gt;                   }&lt;BR /&gt; else {&lt;BR /&gt;                       print "ok\n";&lt;BR /&gt;                   }&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;/STDIN&gt;</description>
      <pubDate>Fri, 26 Mar 2004 10:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216769#M714516</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-26T10:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216770#M714517</link>
      <description>That simple? I'm assuming the function is smart enough to know where the password file is, since its got to work on HP-UX and Linux.&lt;BR /&gt;&lt;BR /&gt;I'm a little hazy on where the user id comes in, but will play with this over the weekend and point you asap.&lt;BR /&gt;&lt;BR /&gt;Looks like a possible winner, though my pea brain molecules could use confirmation of what I just said or a little handholding explanation.&lt;BR /&gt;&lt;BR /&gt;Thanks Sir. I have another one coming up for you where i need to get an oracle metalink page, which requires userid and password. I want to process it and check that my systems are current on oracle patches. First I want to get the back end working before I post.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Mar 2004 10:10:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216770#M714517</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-26T10:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216771#M714518</link>
      <description>Well I did it a bit different in a program I wrote a few years back. For a SUN box. That was also a web interface, to create or modify users. It actually much more complex than this, as I had a config file, that contained authorized users aswell. however the meat of your problem I addressed as follows: &lt;BR /&gt;&lt;BR /&gt;maybe not the best solution but it worked. &lt;BR /&gt;&lt;BR /&gt;sub verify_user {&lt;BR /&gt;my ($pass, $email);&lt;BR /&gt;my ($vuser, $guess) = @_;&lt;BR /&gt;open(SHADOW, "/etc/shadow") or die "unable to open /etc/shadow";&lt;BR /&gt;while(&lt;SHADOW&gt;) {&lt;BR /&gt;$pass = (split/:/, $_)[1] if m|^$vuser:|;&lt;BR /&gt;}&lt;BR /&gt;close(SHADOW);&lt;BR /&gt;&lt;BR /&gt;if (crypt($guess, $pass) eq $pass) {&lt;BR /&gt;return($email);&lt;BR /&gt;} else {&lt;BR /&gt;&amp;amp;error(2,"Failed to authenticate: incorrect username or password");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/SHADOW&gt;</description>
      <pubDate>Fri, 26 Mar 2004 11:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216771#M714518</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-26T11:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216772#M714519</link>
      <description>Excellent. I'll try them out. I'll admit I don't have a clue how either of these programs can work. An doc explaining that is something I'm hunting for in my perl book.&lt;BR /&gt;&lt;BR /&gt;I smell rabbits out there for both of you guys.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Mar 2004 12:01:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216772#M714519</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-26T12:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216773#M714520</link>
      <description>My snippet does not need to know where the password file is: getwduid () should and does. That looks up the password entry by user ID. If you wanna do it by name, use getpwnam ().&lt;BR /&gt;&lt;BR /&gt;# perldoc -f getpwnam&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 26 Mar 2004 12:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216773#M714520</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-26T12:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216774#M714521</link>
      <description>That helps a lot Merijn. Its going to be fun trying this. &lt;BR /&gt;&lt;BR /&gt;The reason for this is I'm setting up a few websites where authorized users will paste their content into a form and a perl script authetnicates and if authentication passes, generates html content on the site.&lt;BR /&gt;&lt;BR /&gt;Its important that only authorized users update the site.&lt;BR /&gt;&lt;BR /&gt;Thanks. Its always a pleasure working with you Merijn. I have a lot on my plate this weekend but will try and test this out.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2004 12:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216774#M714521</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-26T12:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216775#M714522</link>
      <description>I agree getpwnam is probably the way I would do it now. Instead of parsing the password file. However at the time I didn't know about getpwnam, but knew I could parse the password file. &lt;BR /&gt;&lt;BR /&gt;my sub above works by passing into it the username and pw from your web form. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I also had another file, that I looked at so that only authorized users could use the form. So if the username was not in the authorized file, my script would error immediately without looking through the pw file.</description>
      <pubDate>Fri, 26 Mar 2004 12:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216775#M714522</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-26T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216776#M714523</link>
      <description>The Perl implementation of the getpw* functions is a direct mapping of the underlying namesake syscalls from the libc.&lt;BR /&gt;Therefore on Unices that conform to POSIX no weeding with group, passwd or shadow files should be necessary, as Merijn rightly stressed.</description>
      <pubDate>Fri, 26 Mar 2004 12:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216776#M714523</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-03-26T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216777#M714524</link>
      <description>Sounds like fun. Late this evening, preliminary test results should be available, along with point assignments. I'm just going to add some displays to my current experimental script and display validation results or any errors generated from your snippets.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 28 Mar 2004 11:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216777#M714524</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-28T11:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216778#M714525</link>
      <description>I have been playing with this and feeling stupid.&lt;BR /&gt;&lt;BR /&gt;if user id is in a variable called&lt;BR /&gt;$user&lt;BR /&gt;&lt;BR /&gt;and password is in variable called &lt;BR /&gt;&lt;BR /&gt;$password&lt;BR /&gt;&lt;BR /&gt;I use the function how?&lt;BR /&gt;&lt;BR /&gt;Here is my hack.&lt;BR /&gt;&lt;BR /&gt;verify_user( $password, $user);&lt;BR /&gt;&lt;BR /&gt;sub verify_user {&lt;BR /&gt;my ($pass, $email);&lt;BR /&gt;my ($vuser, $guess) = @_;&lt;BR /&gt;open(SHADOW, "/etc/shadow") or die "unable to open /etc/shadow";&lt;BR /&gt;while(&lt;SHADOW&gt;) {&lt;BR /&gt;$pass = (split/:/, $_)[1] if m|^$vuser:|;&lt;BR /&gt;}&lt;BR /&gt;close(SHADOW);&lt;BR /&gt;&lt;BR /&gt;if (crypt($guess, $pass) eq $pass) {&lt;BR /&gt;return($email);&lt;BR /&gt;} else {&lt;BR /&gt;&amp;amp;error(2,"Failed to authenticate: incorrect username or password");&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm not thrilled with this approach, though its getting 9 points minimum, because its not portable. I want this form to work on an hpux system&lt;BR /&gt;&lt;BR /&gt;Please correct me on my attempted usage. Its worth at least 8 points. This thread is officially a mother load.&lt;BR /&gt;&lt;BR /&gt;Same Scenario, Merijn's code...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# how do i set the user id here.&lt;BR /&gt;&lt;BR /&gt; $pwd = (getpwuid ($&amp;lt;))[1];&lt;BR /&gt;&lt;BR /&gt;# don't need this line the web form handles &lt;BR /&gt;# system "stty -echo";&lt;BR /&gt;# webform  gets the pasword to, but its&lt;BR /&gt;# great to know how to do it&lt;BR /&gt;# print "Password: ";&lt;BR /&gt;# webform gets it&lt;BR /&gt;# chomp ($word = &lt;STDIN&gt;);&lt;BR /&gt;# print "\n";&lt;BR /&gt;# system "stty echo";&lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;if (crypt ($word, $pwd) ne $pwd) {&lt;BR /&gt;die "Sorry...\n";&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;print "ok\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;So Merijn's doesn't quite work in my mind, because i feel stupid today.&lt;BR /&gt;&lt;BR /&gt;So if user id is set in $user and password is collected and in $password, how does your code work Merijn.&lt;BR /&gt;&lt;BR /&gt;I know I'm dense today, but i was playing and blew up my form.&lt;BR /&gt;&lt;BR /&gt;My form nicely unwebifys the data&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/STDIN&gt;&lt;/SHADOW&gt;</description>
      <pubDate>Tue, 30 Mar 2004 00:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216778#M714525</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-30T00:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216779#M714526</link>
      <description>My snippet does not work because you do not have a user _ID_, but a user _name_, so you don't need getpwuid (), but getpwnam ()&lt;BR /&gt;&lt;BR /&gt;Demo:&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;lt09:/home/merijn 101 &amp;gt; perl -le'$,=", ";print getpwnam "merijn"'&lt;BR /&gt;merijn, SlpkWGvAcjWXI, 1903, 1900, , , H.Merijn Brand, /home/merijn, /bin/tcsh&lt;BR /&gt;lt09:/home/merijn 102 &amp;gt; perl -le'$,=", ";print getpwnam "hcgdft"'&lt;BR /&gt;&lt;BR /&gt;lt09:/home/merijn 103 &amp;gt;&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;So getpwnam returns an array if the user is found and valid, otherwise it's empty. No need to open a file.&lt;BR /&gt;&lt;BR /&gt;So given $user, $password, and $email come from your web form:&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;--- from your code&lt;BR /&gt;# how do i set the user id here.&lt;BR /&gt;&lt;BR /&gt;@usr = getpwnam $user;&lt;BR /&gt;$usr[0] eq $user or die "This user is not known to this system\n"; # Use anything else for die if you don't want to die&lt;BR /&gt;&lt;BR /&gt;$pwd = (getpwuid ($user))[1];&lt;BR /&gt;&lt;BR /&gt;if (crypt ($word, $pwd) ne $pwd) {&lt;BR /&gt;die "Sorry...\n";&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;print "ok\n";&lt;BR /&gt;}&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;Still that simple. Sooo, turning that into your sub:&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;sub verify_user ()&lt;BR /&gt;{&lt;BR /&gt;my @usr = getpwnam $user;&lt;BR /&gt;$usr[0] eq $user &amp;amp;&amp;amp; # This user is not known to this system&lt;BR /&gt;crypt ($password, $usr[1]) eq $usr[1] and return $email;&lt;BR /&gt;&lt;BR /&gt;error (2, "Failed to authenticate: incorrect username or password");&lt;BR /&gt;} # verify_user&lt;BR /&gt;&lt;BR /&gt;verify_user ();&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Tue, 30 Mar 2004 00:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216779#M714526</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-30T00:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216780#M714527</link>
      <description>&lt;SNIP&gt;&lt;BR /&gt;Here is my hack.&lt;BR /&gt;&lt;BR /&gt;verify_user( $password, $user);&lt;BR /&gt;&lt;BR /&gt;sub verify_user {&lt;BR /&gt;my ($pass, $email);&lt;BR /&gt;my ($vuser, $guess) = @_;&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;&lt;BR /&gt;This failed because you passed password and user backwards into the sub routine. &lt;BR /&gt;&lt;BR /&gt;You needed to do it in this order.&lt;BR /&gt;verify_user($user, $password); &lt;BR /&gt;($vuser, $guess) = @_; &lt;BR /&gt;&lt;BR /&gt;For example: &lt;BR /&gt;&lt;BR /&gt;verify_user(mstrong, test);&lt;BR /&gt;&lt;BR /&gt;sub verify_user {&lt;BR /&gt;($vuser, $guess) = @_;&lt;BR /&gt;would do the following&lt;BR /&gt;$vuser = mstrong; $guess = password;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As for it being portable, yeah I agree it could have been much better. &lt;BR /&gt;You would also need to change /etc/shadow to /etc/passwd. And it will not work on a HPUX trusted machine. &lt;BR /&gt;&lt;BR /&gt;The getpwnam way is the best, wish I would have known about it back when I wrote this kludge. But this was my first major perl project. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SNIP&gt;&lt;/SNIP&gt;</description>
      <pubDate>Tue, 30 Mar 2004 16:00:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216780#M714527</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-30T16:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216781#M714528</link>
      <description>&lt;BR /&gt;$guess = password;&lt;BR /&gt;should be &lt;BR /&gt;$guess = test; in my example above.&lt;BR /&gt; &lt;BR /&gt;was in a hurry and didnt proofread it sorry. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 16:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216781#M714528</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-30T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: A perl script that interacts with user authentication.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216782#M714529</link>
      <description>You have to use the function on hp-ux becasue if the system is trusted, there is no password information in /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Three possible authenthication scenarios in HP-UX&lt;BR /&gt;&lt;BR /&gt;/etc/passwd&lt;BR /&gt;/etc/shadow #this is an available add in product&lt;BR /&gt;Trusted System # lots of little files for passwords.&lt;BR /&gt;&lt;BR /&gt;You do get your points. I'm going to try this stuff out and the thread will be pinged to the top with actual error messages if the code fails.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 30 Mar 2004 16:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/a-perl-script-that-interacts-with-user-authentication/m-p/3216782#M714529</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-30T16:06:21Z</dc:date>
    </item>
  </channel>
</rss>

