Clément OUDOT > Lemonldap-NG-Handler-1.2.3 > Lemonldap::NG::Handler::CDA

Download:
Lemonldap-NG-Handler-1.2.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.2.2   Source   Latest Release: Lemonldap-NG-Handler-1.3.3

NAME ^

Lemonldap::NG::Handler::CDA - Module to use Lemonldap::NG::Handler mechanisms with Cross-Domain-Authentication.

SYNOPSIS ^

New usage:

  package My::Package;
  use Lemonldap::NG::Handler;
  @ISA = qw(Lemonldap::NG::Handler);
  __PACKAGE__->init ( {
    cda                 => 1,
    localStorage        => "Cache::FileCache",
    localStorageOptions => {
        'namespace' => 'lemonldap-ng',
        'default_expires_in' => 600,
      },
    reloadTime          => 1200, # Default: 600
    configStorage       => {
       type                => "DBI"
       dbiChain            => "DBI:mysql:database=$database;host=$hostname;port=$port",
       dbiUser             => "lemonldap",
       dbiPassword         => "password",
    },
  } );

Call your package in /apache-dir/conf/httpd.conf :

  PerlRequire MyFile
  # TOTAL PROTECTION
  PerlHeaderParserHandler My::Package
  # OR SELECTED AREA
  <Location /protected-area>
    PerlHeaderParserHandler My::Package
  </Location>

The configuration is loaded only at Apache start. Create an URI to force configuration reload, so you don't need to restart Apache at each change :

  # /apache-dir/conf/httpd.conf
  <Location /location/that/I/ve/choosed>
    Order deny,allow
    Deny from all
    Allow from my.manager.com
    PerlHeaderParserHandler My::Package->refresh
  </Location>

DESCRIPTION ^

This library inherit from Lemonldap::NG::Handler::SharedConf and add the capability to control users that are authenticated with a Lemonldap::NG::Portal::CDA CGI in another domain.

EXPORT

Same as Lemonldap::NG::Handler::SharedConf.

SEE ALSO ^

Lemonldap::NG::Manager, Lemonldap::NG::Handler, Lemonldap::NG::Handler::SharedConf, http://lemonldap-ng.org/

AUTHOR ^

Clement Oudot, <clem.oudot@gmail.com>
Fran�ois-Xavier Deltombe, <fxdeltombe@gmail.com.>
Xavier Guimard, <x.guimard@free.fr>

BUG REPORT ^

Use OW2 system to report bug or ask for features: http://jira.ow2.org

DOWNLOAD ^

Lemonldap::NG is available at http://forge.objectweb.org/project/showfiles.php?group_id=274

COPYRIGHT AND LICENSE ^

Copyright (C) 2007, 2008, 2009, 2010, 2012 by Xavier Guimard, <x.guimard@free.fr>
Copyright (C) 2012 by Fran�ois-Xavier Deltombe, <fxdeltombe@gmail.com.>
Copyright (C) 2010, 2012 by Clement Oudot, <clem.oudot@gmail.com>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

syntax highlighting: