Authen...::POP3(3pm)
β¨ Authen::Simple::POP3 β¨
okay so bestie, this is a page from the User Contributed Perl Documentation for Authen::Simple::POP3 β aka the little module that lets you check a username and password against a POP3 server. it's giving "gatekeeper but make it polite." π
πΈ NAME πΈ
Authen::Simple::POP3 β simple POP3 authentication. no cap, that's literally the whole pitch.
π SYNOPSIS π
use it like this, queen:
use Authen::Simple::POP3;
my $pop3 = Authen::Simple::POP3->new(
host => 'pop3.company.com'
);
if ( $pop3->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::POP3
PerlSetVar AuthenSimplePOP3_host "pop3.company.com"
<Location /protected>
PerlAuthenHandler Authen::Simple::POP3
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
(yes the comment says successfull, with the double L. we don't fix it, we respect it. β¨)
π¦ DESCRIPTION π¦
you're authenticating against a POP3 service. that's the vibe. that's the whole vibe. π«Ά
π METHODS π
β new
this method takes a hash of parameters, and honestly? the options are the main characters. here's every single one:
hostβ the connection host, and it can be a hostname or an IP number. defaults to"localhost". iconic default behaviour.
host => 'ftp.company.com'
host => '10.0.0.1'
portβ the connection port. defaults to110.
port => 110
timeoutβ the connection timeout. defaults to60.
timeout => 60
methodβ the authentication method, defaults to"plain". the valid options are"apop","plain", and"sasl". pick your fighter π
method => 'plain'
logβ any object that supportsdebug,info,errorandwarn. give it your lil logger bestie.
log => Log::Log4perl->get_logger('Authen::Simple::POP3')
π₯ authenticate( $username, $password )
returns true on success and false on failure. that's it. that's the whole method. slay. π
π SEE ALSO π
Authen::Simple.Net::POP3.
go read those too, iykyk. π
π AUTHOR π
Christian Hansen ch@ngmedia.com β thank you for your service π«‘
π COPYRIGHT π
this program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free as in freedom, bestie. ποΈ
and that's the whole page!! this was perl v5.34.0, dated 2022-06-08, so if you're reading this from the future just know she was built different back then πβ¨π mwah, go authenticate something π¦
π¦ where this page comes from
- debian bookworm: libauthen-simple-net-perl 0.2-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libauthen-simple-net-perl 0.2-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libauthen-simple-net-perl 0.2-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libauthen-simple-net-perl 0.2-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libauthen-simple-net-perl 0.2-6 Β· 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