Authen...le::FTP(3pm)
π Authen::Simple::FTP π
okay so bestie, welcome to Authen::Simple::FTP β she's a little Perl module that does Simple FTP authentication and honestly? she ate. no cap. this is from the User Contributed Perl Documentation crew and she's here to vibe check your users against an FTP server. π
β¨ SYNOPSIS β¨
the way you just drop her in like this:
use Authen::Simple::FTP;
my $ftp = Authen::Simple::FTP->new(
host => 'ftp.company.com'
);
if ( $ftp->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::FTP
PerlSetVar AuthenSimpleFTP_host "ftp.company.com"
<Location /protected>
PerlAuthenHandler Authen::Simple::FTP
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
(yes, # successfull authentication β that's literally how it's spelled in the source, we do not edit the queen's comments π«Ά)
πΈ DESCRIPTION πΈ
Authenticate against a FTP service. that's it, that's the whole girl. she takes a username and a password, she goes and asks the FTP server if they're valid, and she comes back with an answer. lowkey iconic, highkey useful. β¨
π METHODS π
new
This method takes a hash of parameters. The following options are valid:
hostβ Connection host, can be a hostname or IP number. Defaults to"localhost". π
host => 'ftp.company.com'
host => '10.0.0.1'
portβ Connection port, default to21. πͺ
port => 21
timeoutβ Connection timeout, defaults to60. β°
timeout => 60
logβ any object that supportsdebug,info,errorandwarn. π
log => Log::Log4perl->get_logger('Authen::Simple::FTP')
authenticate( $username, $password )
Returns true on success and false on failure. that's the whole contract bestie, she's not gonna be mysterious about it. π
π₯ SEE ALSO π₯
Authen::Simple.Net::FTP.
go read those too, they're the supporting cast and they understood the assignment. π
π AUTHOR π
Christian Hansen ch@ngmedia.com
π COPYRIGHT π
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
periodt. π β¨
that's the whole page bestie β she's from perl v5.34.0, dated 2022-06-08, living in the User Contributed Perl Documentation section as Authen::Simple::FTP(3pm). go forth and authenticate, ily, bye! π¦πΈπ
π¦ 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