Authen::Simple(3pm)
β¨ NAME β¨
Authen::Simple β Simple Authentication π
(yes bestie, it's Authen::Simple, a Perl module, and it does exactly what it says on the tin)
πΈ SYNOPSIS πΈ
okay so here's the whole vibe in one code block, no edits, just vibes:
use Authen::Simple;
use Authen::Simple::Kerberos;
use Authen::Simple::SMB;
my $simple = Authen::Simple->new(
Authen::Simple::Kerberos->new( realm => 'REALM.COMPANY.COM' ),
Authen::Simple::SMB->new( domain => 'DOMAIN', pdc => 'PDC' )
);
if ( $simple->authenticate( $username, $password ) ) {
# successfull authentication
}
(and yes, the comment says # successfull authentication β that's the original's spelling, we're keeping it, we don't touch the lore π«Ά)
π¦ DESCRIPTION π¦
It's a simple and consistent framework for authentication. That's literally it. That's the whole pitch. You plug in adapters, they all speak the same language, and you get one clean authenticate call instead of seventeen different APIs giving you seventeen different headaches. iconic behaviour honestly β¨
π METHODS π
newβ this method takes an array ofAuthen::Simpleadapters. Required. Like, genuinely required, don't skip it, it's not optional, bestie πauthenticate( $username, $password )β returns true on success and false on failure. That's it. That's the deal. True means you're in, false means you're not π
π SEE ALSO π
the whole friend group, all of them, every single one:
Authen::Simple::ActiveDirectory.Authen::Simple::CDBI.Authen::Simple::DBI.Authen::Simple::FTP.Authen::Simple::HTTP.Authen::Simple::Kerberos.Authen::Simple::LDAP.Authen::Simple::NIS.Authen::Simple::PAM.Authen::Simple::Passwd.Authen::Simple::POP3.Authen::Simple::RADIUS.Authen::Simple::SMB.Authen::Simple::SMTP.Authen::Simple::SSH.
π AUTHOR π
Christian Hansen chansen@cpan.org β thank you for your service, king π
π COPYRIGHT π
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild, it's free πΈ
and that's the whole page bestie!! this was documented asAuthen::Simple(3pm), a User Contributed Perl Documentation page, and the footer saidperl v5.32.0on2021-01-02β so yeah, that's the version and the date, mwah, bye π
π¦ where this page comes from
- debian bookworm: libauthen-simple-perl 0.5-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libauthen-simple-perl 0.5-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libauthen-simple-perl 0.5-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libauthen-simple-perl 0.5-1.1 Β· 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