Authen...le::PAM(3pm)
β¨ NAME β¨
okay so bestie, this is Authen::Simple::PAM β it's from the User Contributed Perl Documentation, and it does Simple PAM authentication. that's the whole vibe. that's it. π
πΈ SYNOPSIS πΈ
here's how you actually use it, no cap:
use Authen::Simple::PAM;
my $pam = Authen::Simple::PAM->new(
service => 'login'
);
if ( $pam->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::PAM
PerlSetVar AuthenSimplePAM_service "login"
<Location /protected>
PerlAuthenHandler Authen::Simple::PAM
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
like, look at that mod_perl Authen handler setup. it's giving protected area, do not enter unless you're valid-user. π₯
π DESCRIPTION π
PAM authentication. short and sweet, just like this section. periodt. π
π METHODS π
new
This method takes a hash of parameters. The following options are valid:
service
PAM service. Defaults to "login".
service => 'sshd'
log
Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::PAM')
authenticate( $username, $password )
Returns true on success and false on failure. that's the moment of truth bestie, true or false, no in-between π«Ά
π¦ SEE ALSO π¦
Authen::Simple.Authen::PAM.
go read those too, iykyk β¨
π AUTHOR π
Christian Hansen "ch@ngmedia.com" β iconic, we love them π
π COPYRIGHT π
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
okay that's the whole page bestie, you're officially a PAM girlie now β¨π π
this was perl v5.34.0, dated 2022-06-08, and the manual page was Authen::Simple::PAM(3pm) from the User Contributed Perl Documentation. mwah, go authenticate something ππ¦πΈ
π¦ where this page comes from
- debian bookworm: libauthen-simple-pam-perl 0.2-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libauthen-simple-pam-perl 0.2-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libauthen-simple-pam-perl 0.2-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libauthen-simple-pam-perl 0.2-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libauthen-simple-pam-perl 0.2-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms