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 Unix::Passwd::File to read user 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 - expect gecos, gid, uid, home, shell, uid.

get_user_roles $username