Authen::Smb(3pm)

Authen::Smb3pm

Perl extension to authenticate against an smb server

Usage

  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";
  }

Overview

Authen::Smb allows you to authenticate a user against an NT domain. You can specify both a primary and a backup server to use for authentication. The NT names of the machines should be used for specifying servers.

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. All other return values indicate failure, of one sort or another.

EXPORT_OK constants

  NTV_LOGON_ERROR
  NTV_NO_ERROR
  NTV_PROTOCOL_ERROR
  NTV_SERVER_ERROR

Releases

12 releases since Debian 3.0 (Woody); the text changed 9 times.

  1. 3.0
  2. 3.1–4.0
  3. 5.0–6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13

Author

Patrick Michael Kane, [email protected] Based on the smbval library from the samba package

From libauthen-smb-perl 0.91-8+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.