Lemonldap::NG::Portal::CDA - Perl extension for building Lemonldap::NG compatible portals with Cross Domain Authentication.
use Lemonldap::NG::Portal::SharedConf; my $portal = new Lemonldap::NG::Portal::SharedConf( { configStorage => { type => 'DBI', dbiChain => "dbi:mysql:...", dbiUser => "lemonldap", dbiPassword => "password", dbiTable => "lmConfig", }, } ); if($portal->process()) { # Write here the menu with CGI methods. This page is displayed ONLY IF # the user was not redirected here. print $portal->header; # DON'T FORGET THIS (see L<CGI(3)>) print "..."; # or redirect the user to the menu print $portal->redirect( -uri => 'https://portal/menu'); } else { # Write here the html form used to authenticate with CGI methods. # $portal->error returns the error message if athentification failed # Warning: by defaut, input names are "user" and "password" print $portal->header; # DON'T FORGET THIS (see L<CGI(3)>) print "..."; print '<form method="POST">'; # In your form, the following value is required for redirection print '<input type="hidden" name="url" value="'.$portal->param('url').'">'; # Next, login and password print 'Login : <input name="user"><br>'; print 'Password : <input name="password" type="password" autocomplete="off">'; print '<input type="submit" value="go" />'; print '</form>'; }
Modify your httpd.conf:
<Location /My/File> SSLVerifyClient require SSLOptions +ExportCertData +CompatEnvVars +StdEnvVars </Location>
This library just overload few methods of L<>Lemonldap::NG::Portal::SharedConf> to add Cross Domain Authentication. Handlers that are not used in the same domain than the portal must inherit from L<>Lemonldap::NG::Handler::CDA>.
See Lemonldap::NG::Portal::SharedConf for usage and other methods.
Lemonldap::NG::SharedConf, Lemonldap::NG::Handler, Lemonldap::NG::Handler::CDA
Xavier Guimard, <x.guimard@free.fr>
Copyright (C) 2007 by Xavier Guimard <x.guimard@free.fr>
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.
1 POD Error
The following errors were encountered while parsing the POD:
An empty L<>
To install Lemonldap::NG::Portal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lemonldap::NG::Portal
CPAN shell
perl -MCPAN -e shell install Lemonldap::NG::Portal
For more information on module installation, please visit the detailed CPAN module installation guide.