Authen...rberos(3pm)
β¨ Authen::Simple::Kerberos β¨
okay so bestie, welcome to the Authen::Simple::Kerberos page β it's from the User Contributed Perl Documentation collection, and it's literally the easiest way to do Kerberos authentication in Perl. yes, that Kerberos. the big scary tickets-and-realms one. it's giving "simple" and honestly? it ate. π
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste style:
use Authen::Simple::Kerberos;
my $kerberos = Authen::Simple::Kerberos->new(
realm => 'REALM.COMPANY.COM'
);
if ( $kerberos->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::Kerberos
PerlSetVar AuthenSimpleKerberos_realm "REALM.COMPANY.COM"
<Location /protected>
PerlAuthenHandler Authen::Simple::Kerberos
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
no cap, that second half is the mod_perl Authen handler route β you just drop it in your Apache config and your protected location is protected. iconic behavior honestly π«Ά
π¦ DESCRIPTION π¦
Kerberos authentication. that's it. that's the description. short and slay π
π METHODS π
π new
this method takes a hash of parameters. the following options are valid:
realmβ the Kerberos realm. like:
realm => 'REALM.COMPANY.COM'
logβ any object that supportsdebug,info,errorandwarn. for example:
log => Log::Log4perl->get_logger('Authen::Simple::Kerberos')
π« authenticate( $username, $password )
Returns true on success and false on failure. that's the whole method. yes it's that simple, and yes that's the point β¨
π SEE ALSO π
Authen::Simple.Authen::Krb5::Simple.
π§ AUTHOR π§
Christian Hansen ch@ngmedia.com β legend behavior, 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.
lowkey the whole point of this module is that you don't have to hand-roll Kerberos, you just set the realm and let it cook. π₯
and that's the page!! no notes, 10/10, go authenticate something. π
courtesy of perl v5.34.0, dated 2022-06-08 β it's giving vintage but make it eternal π bye bestie!! π¦
π¦ where this page comes from
- debian bookworm: libauthen-simple-kerberos-perl 0.1-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libauthen-simple-kerberos-perl 0.1-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libauthen-simple-kerberos-perl 0.1-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libauthen-simple-kerberos-perl 0.1-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libauthen-simple-kerberos-perl 0.1-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