Authen::Simple::PAM(3pm)

Authen::Simple::PAM3pm

Simple pam authentication

Usage

    use Authen::Simple::PAM;
    
    my $pam = Authen::Simple::PAM->new(
        service => 'login'
    );
    
    if ( $pam->authenticate( $username, $password ) ) {
        # successfull authentication
    }
    
    # or as a mod_perl Authen handler
    PerlModule Authen::Simple::Apache
    PerlModule Authen::Simple::PAM
    PerlSetVar AuthenSimplePAM_service "login"
    <Location /protected>
      PerlAuthenHandler Authen::Simple::PAM
      AuthType          Basic
      AuthName          "Protected Area"
      Require           valid-user
    </Location>

Overview

PAM authentication.

Methods

•

new

This method takes a hash of parameters. The following options are valid:

•

service

PAM service. Defaults to "login".

    service => 'sshd'
•

log

Any object that supports "debug", "info", "error" and "warn".

    log => Log::Log4perl->get_logger('Authen::Simple::PAM')
•

authenticate( $username, $password )

Returns true on success and false on failure.

Releases

10 releases since Debian 4.0 (Etch); the text changed 5 times.

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

Author

Christian Hansen "[email protected]"

From libauthen-simple-pam-perl 0.2-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.