GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Gantry::Control::C::Authz::PageBasedRegular(3) User Contributed Perl Documentation Gantry::Control::C::Authz::PageBasedRegular(3)

Gantry::Control::C::PageBasedRegular - AuthenBase subclass for normal ORMs

use Gantry::Control::C::PageBasedRegular qw/-Engine=MP20/;

This module allows page based authentication against a database.

user_model
Returns Gantry::Control::Model::auth_users. If you want something else, try Gantry::Control::C::Authz::PageBasedCDBI or make your own Gantry::Control::C::Authz::PageBasedBase subclass.
group_members_model
Returns Gantry::Control::Model::group_members. If you want something else, try Gantry::Control::C::Authz::PageBasedCDBI or make your own Gantry::Control::C::Authz::PageBasedBase subclass.

Sample Apache conf configuration

  <Location /location/to/auth >
    AuthType    Basic
    AuthName    "Manual"
    
    PerlSetVar  auth_dbconn     'dbi:Pg:<database_name>'
    PerlSetVar  auth_dbuser     '<database_user>'
    PerlSetVar  auth_dbpass     '<database_password>'
    
    PerlSetVar  auth_dbcommit   off

    PerlAuthenHandler   Gantry::Control::C::AuthenRegular
    PerlAuthenHandler   Gantry::Control::C::Authz::PageBasedRegular

    require     valid-user
  </Location>

This is the table that will be queried for the authentication of the user.

  create table "auth_users" (
    "id"            int4 default nextval('auth_users_seq') NOT NULL,
    "user_id"       int4,
    "active"        bool,
    "user_name"     varchar,
    "passwd"        varchar,
    "crypt"         varchar,
    "first_name"    varchar,
    "last_name"     varchar,
    "email"         varchar
  );

handler
The mod_perl authen handler.

Gantry::Control::C::Authz(3), Gantry::Control(3), Gantry(3)

Phil Crow <philcrow2000@yahoo.com>

Copyright (c) 2006, Tim Keefer.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.