Apache2-AuthenNIS
view release on metacpan or search on metacpan
lib/Apache2/AuthenNIS.pm view on Meta::CPAN
}
else {
my $error_msg = Net::NIS::yperr_string( $status );
$r->note_basic_auth_failure;
$r->log_error( __PACKAGE__, " - user $name: yp_match: status ",
"$status, $error_msg", $r->uri );
return Apache2::Const::HTTP_UNAUTHORIZED;
}
}
my( $user, $hash, $uid, $gid, $gecos, $dir, $shell ) = split( /:/, $entry );
if ( crypt( $sent_pwd, $hash ) eq $hash ) {
return Apache2::Const::OK;
} else {
if ( lc( $allowaltauth ) eq "yes" ) {
return Apache2::Const::DECLINED;
}
else {
$r->note_basic_auth_failure;
$r->log_error( __PACKAGE__, " - user $name: bad password", $r->uri );
( run in 1.338 second using v1.01-cache-2.11-cpan-5735350b133 )