NAME

Lemonldap::NG::Handler::SharedConf - Perl extension for adding dynamic configuration to Lemonldap::NG::Handler

SYNOPSIS

package My::Package;
use Lemonldap::NG::Handler::SharedConf;
@ISA = qw(Lemonldap::NG::Handler::SharedConf);

__PACKAGE__->init ( {
  localStorage        => "Cache::DBFile",
  localStorageOptions => {},
  reloadTime          => 1200, # Default: 600
} );

Change configuration :

# In a childInitHandler method or another method called after Apache's fork
__PACKAGE__->setConf ( {
    locationRules => { '^/.*$' => '$ou =~ /brh/'},
    globalStorage        => 'Apache::Session::MySQL',
    globalStorageOptions => {
      ...
    }
    portal               => 'https://portal/',
  }
);

DESCRIPTION

Lemonldap is a simple Web-SSO based on Apache::Session modules. It simplifies the build of a protected area with a few changes in the application (they just have to read some headers for accounting).

It manages both authentication and authorization and provides headers for accounting. So you can have a full AAA protection for your web space. There are two ways to build a cross domain authentication:

This library splits Lemonldap::NG::Handler initialization into 2 phases: local initialization and global configuration set. It can be used if you want to be able to change the handler configuration without restarting Apache. See also Lemonldap::Manager::Handler to see an example of use.

SUBROUTINES

init

Like Lemonldap::NG::Handler::init() but read only localStorage related options. You may change default time between two configuration checks with the reloadTime parameter (default 600s).

setConf

Like Lemonldap::NG::Handler::init() but does not read localStorage related options. This method has to be used at PerlChildInitHandler stage else, the server will return an error 500 (internal server error) until it obtains a valid configuration.

EXPORT

Same as Lemonldap::NG::Handler.

SEE ALSO

AUTHOR

Xavier Guimard, <guimard@>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Xavier Guimard

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.4 or, at your option, any later version of Perl 5 you may have available.

Lemonldap was originaly written by Eric german who decided to publish him in 2003 under the terms of the GNU General Public License version 2.