The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::AuthenMT - Authenticate using Movable Type's database

SYNOPSIS

Example 1: .htaccess:

    <%Perl>
    use lib '/www/htdocs/apps/mt/lib';
    use lib '/www/htdocs/apps/mt/extlib';
    </%Perl>
    PerlModule Apache::AuthenMT
    AuthName MindsIsland
    AuthType Basic
    PerlSetVar MT_DIR /www/htdocs/apps/mt/
    PerlAuthenHandler Apache::AuthenMT
    require valid-user

Example 2: httpd.conf:

    <%Perl>
    use lib '/www/htdocs/apps/mt/lib';
    use lib '/www/htdocs/apps/mt/extlib';
    </%Perl>
    PerlModule Apache::AuthenMT
    <Location /somewhere>
        AuthName MindsIsland
        AuthType Basic
        PerlSetVar MT_DIR /www/htdocs/apps/mt/
        PerlAuthenHandler Apache::AuthenMT
        require valid-user
    <Location /somewhere>

REQUIRES

Movable Type

Movable Type is a popular blogging system.

mod_perl

mod_perl embeds a perl interpreter into apache.

DESCRIPTION

This is a mod_perl authentication handler that authenticates using Movable Type's database. Setting it up requires that you already have Movable Type installed on your system. Configuring it is then a simple matter of adding a few lines to httpd.conf or .htaccess to tell Apache that you'd like Apache::AuthenMT to handle authentication for a URL. The synopsis provides some example configurations you can adapt to your needs.

METHODS

handler

mod_perl auth handler

authenticate

This checks the user and password against database.

VARIABLES

MT_DIR

This variable should contain the path to your Movable Type perl modules. It needs to be set in your httpd.conf using the PerlSetVar directive.

AUTHOR

John BEPPU <beppu@cpan.org>

SEE ALSO

http://www.modperl.com/ and http://www.movabletype.org/