Authen...le::PAM(3pm)

πŸ“¦
version 0.2 Β· 2 versions
  • 0.2 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’œ


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