Authen::Smb man page on Mageia

Man page or keyword search:  
man Server   17783 pages
apropos Keyword Search (all sections)
Output format
Mageia logo
[printable version]

Smb(3)		      User Contributed Perl Documentation		Smb(3)

NAME
       Authen::Smb - Perl extension to authenticate against an SMB server

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
       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 \fIs0(0) NTV_SERVER_ERROR \fIs0(1) NTV_PROTOCOL_ERROR
       \fIs0(2) NTV_LOGON_ERROR \fIs0(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

AUTHOR
       Patrick Michael Kane, modus@pr.es.to Based on the smbval library from
       the samba package

SEE ALSO
       perl(1).

perl v5.18.1			  1999-06-07				Smb(3)
[top]

List of man pages available for Mageia

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net