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

Lemonldap::NG::Portal::AuthApache3pm

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    => 'Apache',
    );
  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 {
    # If the user enters here, IT MEANS THAT APACHE AUTHENTICATION DOES NOT WORK
    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>";
  }

and of course, configure Apache to protect the portal.

Overview

This library just overload few methods of Lemonldap::NG::Portal::Simple to use Apache authentication mechanism: we've just try to get REMOTE_USER environment variable.

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

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Author

Clement Oudot, <[email protected]>
Xavier Guimard, <[email protected]>

From liblemonldap-ng-portal-perl 1.9.7-3+deb9u2 in Debian 9 (Stretch). Parsed by carta from the page's man source.