Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Perl NIS authentication

by tercel04 (Initiate)
on Jun 28, 2007 at 18:43 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://623963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-19 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found