Smb(3pm)
β¨ NAME β¨
Authen::Smb β a Perl extension that lets you authenticate a user against an SMB server, bestie π
π SYNOPSIS π
use Authen::Smb;
my $authResult = Authen::Smb::authen('myUser',
'myPassword',
'myPDC',
'myBDC',
'myNTDomain');
if ( $authResult == Authen::Smb::NO_ERROR ) {
print "User successfully authenticated.\n";
} else {
print "User not authenticated with error level $authResult\n";
}
π¦ DESCRIPTION π¦
okay so Authen::Smb is literally here to authenticate a user against an NT domain, no cap π You get to specify both a primary and a backup server to use for authentication, which is giving β¨redundancyβ¨ energy. And when you're specifying those servers, use the NT names of the machines β that's the vibe, iykyk.
An authentication request will return one of four values:
NTV_NO_ERROR(0)NTV_SERVER_ERROR(1)NTV_PROTOCOL_ERROR(2)NTV_LOGON_ERROR(3)
NTV_NO_ERROR is the only return value possible for a successful authentication β like, the one single W. Every other return value indicates failure, of one sort or another π Periodt.
πΈ EXPORT_OK constants πΈ
These ones are available for export, mwah π«Ά:
NTV_LOGON_ERROR
NTV_NO_ERROR
NTV_PROTOCOL_ERROR
NTV_SERVER_ERROR
π AUTHOR π
Patrick Michael Kane, modus@pr.es.to β based on the smbval library from the samba package. Iconic, honestly π
π₯ SEE ALSO π₯
ngl bestie, keep this page bookmarked β your future self will thank you π
that's it, that's the whole manual β brought to you by perl v5.42.3, dated 2026-08-19. slay, bye π β¨
π¦ where this page comes from
- ubuntu stonking: libauthen-smb-perl 0.91-9build1 Β· 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