## @file # Deprecated: use "cda" parameter instead ## @class # Deprecated: use "cda" parameter instead package Lemonldap::NG::Portal::CDA; use strict; use Lemonldap::NG::Portal::SharedConf qw(:all); our $VERSION = '1.0.0'; use base ('Lemonldap::NG::Portal::SharedConf'); *EXPORT_OK = *Lemonldap::NG::Portal::SharedConf::EXPORT_OK; *EXPORT_TAGS = *Lemonldap::NG::Portal::SharedConf::EXPORT_TAGS; *EXPORT = *Lemonldap::NG::Portal::SharedConf::EXPORT; ################## # OVERLOADED SUB # ################## ## @cmethod Lemonldap::NG::Portal::CDA new(array params) # Call Lemonldap::NG::Portal::SharedConf::new() with "cda" parameter set to 1 # @param params Lemonldap::NG::Portal::SharedConf::new() parameters # @return New Lemonldap::NG::Portal::CDA object sub new { my $class = shift; my $self = $class->SUPER::new(@_); $self->{cda} = 1; return $self; } 1; __END__ =head1 NAME =encoding utf8 Lemonldap::NG::Portal::CDA - Perl extension for building Lemonldap::NG compatible portals with Cross Domain Authentication. =head1 SYNOPSIS use Lemonldap::NG::Portal::SharedConf; my $portal = new Lemonldap::NG::Portal::SharedConf( { cda => 1, 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('text/html; charset=utf8'); # DON'T FORGET THIS (see L) 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('text/html; charset=utf8'); # DON'T FORGET THIS (see L) print "..."; print '
'; # In your form, the following value is required for redirection print ''; # Next, login and password print 'Login :
'; print 'Password : '; print ''; print '
'; } Modify your httpd.conf: SSLVerifyClient require SSLOptions +ExportCertData +CompatEnvVars +StdEnvVars =head1 DESCRIPTION This file is maintened only for compatibility. Now set "cda => 1" in the portal. =head1 SEE ALSO L, L, L, L =head1 AUTHOR =over =item Clement Oudot, Eclem.oudot@gmail.comE =item Xavier Guimard, Ex.guimard@free.frE =item Thomas Chemineau, Ethomas.chemineau@gmail.comE =back =head1 BUG REPORT Use OW2 system to report bug or ask for features: L =head1 DOWNLOAD Lemonldap::NG is available at L =head1 COPYRIGHT AND LICENSE =over =item Copyright (C) 2007, 2008, 2009, 2010 by Xavier Guimard, Ex.guimard@free.frE =item Copyright (C) 2010, 2012 by Clement Oudot, Eclem.oudot@gmail.comE =item Copyright (C) 2008 by Thomas Chemineau, Ethomas.chemineau@gmail.comE =back 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 L. =cut