in reply to Perl NIS authentication

Can't you just do a getpwnam and getpwuid and a crypt? NIS is just like files to any program on the OS.

Replies are listed 'Best First'.
Re^2: Perl NIS authentication
by tercel04 (Initiate) on Jun 28, 2007 at 18:43 UTC
    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!