Dancer2...er::Unix(3)
π NAME π
okay so you're looking at the user-contributed Perl documentation for Dancer2...er::Unix(3), and the actual module is Dancer2::Plugin::Auth::Extensible::Unix β it authenticates *nix system accounts. periodt. π
π¦ DESCRIPTION π¦
real talk, bestie: this is an authentication provider for Dancer2::Plugin::Auth::Extensible, and its whole vibe is authenticating Linux/Unix system accounts.
It 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 β and honestly? that seems sensible. β¨
WARNING: in order to use PAM authentication on most modern Linux/UNIX systems the application performing authentication must have read access to the /etc/shadow file. This is a security risk since it can lead to accidental disclosure of sensitive data if you have any path traversal vulnerabilities, etc. We strongly recommend AGAINST using this module and provide it purely as an example. Any use of it IS AT YOUR OWN RISK. You have been warned. ππ΄
β¨ METHODS β¨
πΈ authenticate_user $username, $password
that's the signature, bestie: 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, gecos, dir, shell, expire. slay. π
π¦ get_user_roles $username
and here's the signature: get_user_roles $username. no extra deets, just that iconic little method. πΈ
mwah π β this page is from perl v5.42.0, dated 2026-08-25, and it's all about Dancer2...er::Unix(3). stay safe out there, bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Dancer2-Plugin-Auth-Extensible 0.714.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms