The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lemonldap::NG::Manager::Notifications - Perl extension to manage Lemonldap::NG notifications

SYNOPSIS

  #!/usr/bin/perl

  use strict;
  use Lemonldap::NG::Manager::Notificationss;
  our $cgi ||= Lemonldap::NG::Manager::Notifications->new({
        localStorage        => "Cache::FileCache",
        localStorageOptions => {
            'namespace'          => 'lemonldap-ng',
            'default_expires_in' => 600,
            'directory_umask'    => '007',
            'cache_root'         => '/tmp',
            'cache_depth'        => 5,
        },
        configStorage => $Lemonldap::NG::Conf::configStorage,
        configStorage=>{
          type=>'File',
          dirName=>"/tmp/",
        },
        # Force the use of X-FORWARDED-FOR for IP
        useXForwardedForIP => 1,
        # Optionnal
        protection    => 'rule: $uid eq "admin"',
        # Or to use rules from manager
        protection    => 'manager',
        # Or just to authenticate without managing authorization
        protection    => 'authenticate',
  });
  $cgi->process();

DESCRIPTION

Lemonldap::NG::Manager::Notifications provides a web interface to manage Lemonldap::NG notifications.

It inherits from Lemonldap::NG::Handler::CGI, so see this manpage to understand how arguments passed to the constructor.

SEE ALSO

Lemonldap::NG::Handler::CGI, Lemonldap::NG::Manager

AUTHOR

Xavier Guimard, <x.guimard@free.fr> Clement Oudot, <clem.oudot@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Xavier Guimard, Clement Oudot

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.