No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
retupmoca Merge pull request #7 from perl6-unbitrot/master
Module will not install without certain packages installed. Instructions included for Debian-based systems.
Latest commit 964a8bb Sep 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Auth/PAM use %?RESOURCES Dec 12, 2015
src fix makefile Apr 30, 2018
t Remove Pod::Coverage dep Dec 12, 2015
.travis.yml really add travis config Apr 30, 2018
Build.pm Add travis config, remove panda bits Apr 30, 2018
LICENSE Initial commit Mar 29, 2014
META6.json Add travis config, remove panda bits Apr 30, 2018
README.md - Addresses issue with missing dependencies for installation. Aug 4, 2018

README.md

module Auth::PAM::Simple

A simple way to authenticate against your local unix PAM service.

Note that the only service this has been tested against is the 'login' service. Patches and fixes are welcome.

Example Usage

my Bool $login-valid = authenticate('login', 'retupmoca', 'xxxxxx');

sub authenticate

sub authenticate(
    $service,
    Str $user,
    Str $pass
) returns Bool

Calls the PAM service $service, and attempts to authenticate using the given $user and $pass. Returns True for success and False for failure.

To build this module, you will need both libpam.so, and it's header files.

You can accomplish this on Debian-based systems with the following command:

sudo apt install libpam-dev