Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Perl NIS authentication

by tercel04 (Initiate)
on Jun 28, 2007 at 18:43 UTC ( #623963=note: print w/replies, xml ) Need Help??


in reply to Re: Perl NIS authentication
in thread Perl NIS authentication

I did not try that. But I got it to work this way
use APR::Util();
@hashpasswd = split(":",chomp($yppasswd = `ypcat passwd | grep $user:`));
$ok = APR::Util::password_validate($passwd, $hashpasswd\1\); if($ok == 1) { ## Valid User
}else { ## Invalid user
}
Thanks for the reply!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://623963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2020-11-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?