Lemonldap::NG::Handler::SympaAutoLogin - Perl extension to generate Sympa cookie for users authenticated by LemonLDAP::NG
package My::Sympa; use Lemonldap::NG::Handler::SympaAutoLogin; @ISA = qw(Lemonldap::NG::Handler::SympaAutoLogin); __PACKAGE__->init ( { # Sympa parameters sympaSecret => 'XXXX', sympaMailKey => 'mail', # See Lemonldap::NG::Handler for more } ); 1;
Lemonldap::NG::Handler::SympaAutoLogin is a special Lemonldap::NG handler that generates Sympa cookie for authenticated users. Use it instead of classic Lemonldap::NG::Handler to protect your Sympa web server. You have to set the configuration key containing user email (parameter sympaMailKey) and to store Sympa secret (cookie parameter on Sympa configuration file) in the corresponding configuration parameter (sympaSecret)
Edit you Sympa vhost configuration like this:
<VirtualHost *> ServerName sympa.example.com
# Load Sympa Handler PerlRequire __HANDLERDIR__/MyHandlerSympa.pm PerlHeaderParserHandler My::Sympa
</VirtualHost>
See Lemonldap::NG::Handler
Lemonldap::NG::Handler
Xavier Guimard, <x.guimard@free.fr> Clement Oudot, <clement@oodo.net>
Copyright (C) 2009, 2010 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.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Lemonldap::NG::Handler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lemonldap::NG::Handler
CPAN shell
perl -MCPAN -e shell install Lemonldap::NG::Handler
For more information on module installation, please visit the detailed CPAN module installation guide.