Lemonldap::NG::Portal::AuthSlave(3pm)

Lemonldap::NG::Portal::AuthSlave3pm

Perl extension for building lemonldap::ng compatible portals with apache authentication.

Usage

  use Lemonldap::NG::Portal::SharedConf;
  my $portal = new Lemonldap::NG::Portal::Simple(
         configStorage     => {...}, # See Lemonldap::NG::Portal
         authentication    => 'Slave',
    );
  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=utf-8'); # DON'T FORGET THIS (see CGI(3))
    print "...";
    # or redirect the user to the menu
    print $portal->redirect( -uri => 'https://portal/menu');
  }
  else {
    print $portal->header('text/html; charset=utf-8'); # DON'T FORGET THIS (see CGI(3))
    print "<html><body><h1>Unable to work</h1>";
    print "This server isn't well configured. Contact your administrator.";
    print "</body></html>";
  }

Overview

This library just overload few methods of Lemonldap::NG::Portal::Simple to create sessions for anonymous users.

See Lemonldap::NG::Portal::Simple for usage and other methods.

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>

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9