NAME

Dancer2::Plugin::Auth::Extensible::Unix - authenticate *nix system accounts

DESCRIPTION

An authentication provider for Dancer2::Plugin::Auth::Extensible which authenticates Linux/Unix system accounts.

Uses getpwnam and getgrent to read user and group details, and Authen::Simple::PAM to perform authentication via PAM.

Unix group membership is used as a reasonable facsimile for roles - this seems sensible.

METHODS

authenticate_user $username, $password

get_user_details $username

Returns information from the passwd file as a hash reference with the following keys: uid, gid, quota, comment, gcos, dir, shell, expire

get_user_roles $username