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


Manual Reference Pages  -  GANTRY::UTILS::AUTHCDBI (3)

.ds Aq ’

NAME

Gantry::Utils::AuthCDBI - Class::DBI base model for Gantry Auth

CONTENTS

SYNOPSIS

This module expects to retrieve the database connection, username and password from the apache conf file like this:

<Location / >
PerlOptions +GlobalRequest



    PerlSetVar auth_dbconn dbi:Pg:[database]
    PerlSetVar auth_dbuser myuser
    PerlSetVar auth_dbpass mypass
</Location>



Or, from the cgi engines constructor:



    my $cgi = Gantry::Engine::CGI->new(
        locations => ...,
        config => {
            auth_dbconn =>  dbi:Pg:[database],
            auth_dbuser =>  myuser,
            auth_dbpass =>  mypass,
        }
    );



Or, from a script:



    #!/usr/bin/perl

    use Gangtry::Utils::DBConnHelper::Script;

    Gangtry::Utils::DBConnHelper::Script->set_auth_db_conn(
        {
            auth_dbconn =>  dbi:Pg:[database],
            auth_dbuser =>  myuser,
            auth_dbpass =>  mypass,
        }
    );



DESCRIPTION

This module provide the base methods for Class::DBI, including the db connection through Gantry::Utils::ModelHelper (and its friends in the Gantry::Utils::DBConnHelper family).

METHODS

get_db_options Returns the dbi connection options, which are usually supplied by Class::DBI’s _default_attributes method.

AUTHOR

Tim Keefer <tkeefer@gmail.com>

COPYRIGHT and LICENSE

Copyright (c) 2005-6, 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.

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


perl v5.20.3 GANTRY::UTILS::AUTHCDBI (3) 2016-04-03

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