Authen-Simple-NIS

 view release on metacpan or  search on metacpan

lib/Authen/Simple/NIS.pm  view on Meta::CPAN

              if $self->log;
        }

        return 0;
    }

    my $encrypted = ( split( /:/, $entry ) )[1];

    unless ( $self->check_password( $password, $encrypted ) ) {

        $self->log->debug( qq/Failed to authenticate user '$username'. Reason: 'Invalid credentials'/ )
          if $self->log;

        return 0;
    }

    $self->log->debug( qq/Successfully authenticated user '$username' using domain '$domain'./ )
      if $self->log;

    return 1;
}



( run in 0.307 second using v1.01-cache-2.11-cpan-a5abf4f5562 )