| 1 |
NAME |
| 2 |
Authen::Simple::SMB - Simple SMB authentication |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
use Authen::Simple::SMB; |
| 6 |
|
| 7 |
my $smb = Authen::Simple::SMB->new( |
| 8 |
domain => 'DOMAIN', |
| 9 |
pdc => 'PDC' |
| 10 |
); |
| 11 |
|
| 12 |
if ( $smb->authenticate( $username, $password ) ) { |
| 13 |
# successfull authentication |
| 14 |
} |
| 15 |
|
| 16 |
# or as a mod_perl Authen handler |
| 17 |
|
| 18 |
PerlModule Authen::Simple::Apache |
| 19 |
PerlModule Authen::Simple::SMB |
| 20 |
|
| 21 |
PerlSetVar AuthenSimpleSMB_domain "DOMAIN" |
| 22 |
PerlSetVar AuthenSimpleSMB_pdc "PDC" |
| 23 |
|
| 24 |
<Location /protected> |
| 25 |
PerlAuthenHandler Authen::Simple::SMB |
| 26 |
AuthType Basic |
| 27 |
AuthName "Protected Area" |
| 28 |
Require valid-user |
| 29 |
</Location> |
| 30 |
|
| 31 |
DESCRIPTION |
| 32 |
Authenticate against an SMB server. |
| 33 |
|
| 34 |
METHODS |
| 35 |
* new |
| 36 |
This method takes a hash of parameters. The following options are |
| 37 |
valid: |
| 38 |
|
| 39 |
* domain |
| 40 |
Domain to authenticate against. Required. |
| 41 |
|
| 42 |
domain => 'NTDOMAIN' |
| 43 |
|
| 44 |
* pdc Primary Domain Controller. Required. |
| 45 |
|
| 46 |
pdc => 'PDC' |
| 47 |
|
| 48 |
* bdc Backup Domain Controller. |
| 49 |
|
| 50 |
bdc => 'BDC' |
| 51 |
|
| 52 |
* log Any object that supports "debug", "info", "error" and |
| 53 |
"warn". |
| 54 |
|
| 55 |
log => Log::Log4perl->get_logger('Authen::Simple::SMB') |
| 56 |
|
| 57 |
* authenticate( $username, $password ) |
| 58 |
Returns true on success and false on failure. |
| 59 |
|
| 60 |
SEE ALSO |
| 61 |
Authen::Simple. |
| 62 |
|
| 63 |
Authen::Smb. |
| 64 |
|
| 65 |
AUTHOR |
| 66 |
Christian Hansen "[email protected]" |
| 67 |
|
| 68 |
COPYRIGHT |
| 69 |
This program is free software, you can redistribute it and/or modify it |
| 70 |
under the same terms as Perl itself. |
| 71 |
|