---
name: "Lemonldap::NG::Handler::Status"
section: "3pm"
platform: "linux"
package: "liblemonldap-ng-handler-perl"
version: "1.9.7-3+deb9u2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Lemonldap::NG::Handler::Status"
---

# Lemonldap::NG::Handler::Status(3pm)

Perl extension to add a mod\_status like system for Lemonldap::NG::Handler

## NAME

Lemonldap::NG::Handler::Status - Perl extension to add a mod\_status like system for Lemonldap::NG::Handler

## SYNOPSIS

### Create your Apache module

Create your own package (example using a central configuration database):

```
  package My::Package;
  use Lemonldap::NG::Handler::SharedConf;
  @ISA = qw(Lemonldap::NG::Handler::SharedConf);

  __PACKAGE__->init ( {
    # Activate status feature
    status              => 1,
    # Local storage used for sessions and configuration
    localStorage        => "Cache::DBFile",
    localStorageOptions => {...},
    # How to get my configuration
    configStorage       => {
        type                => "DBI",
        dbiChain            => "DBI:mysql:database=lemondb;host=$hostname",
        dbiUser             => "lemonldap",
        dbiPassword          => "password",
    }
    # ... See Lemonldap::NG::Handler
  } );
```

### Configure Apache

Call your package in /apache-dir/conf/httpd.conf:

```
  # Load your package
  PerlRequire /My/File
  # Normal Protection
  PerlHeaderParserHandler My::Package

  # Status page
  <Location /status>
    Order deny,allow
    Allow from 10.1.1.0/24
    Deny from all
    PerlHeaderParserHandler My::Package->status
  </Location>
```

## DESCRIPTION

Lemonldap::NG::Handler::Status adds a mod\_status like feature to display Lemonldap::NG::Handler activity on a protected server. It can so be used by mrtg or directly browsed by your browser.

## SEE ALSO

Lemonldap::NG::Handler, Lemonldap::NG::Portal, Lemonldap::NG::Manager, \<http://lemonldap-ng.org/\>

## AUTHOR

- Clement Oudot, \<clem.oudot@gmail.com\>

  - François-Xavier Deltombe, \<fxdeltombe@gmail.com.\>

  - Xavier Guimard, \<x.guimard@free.fr\>

  - Sandro Cazzaniga, \<cazzaniga.sandro@gmail.com\>

  ## 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\>

## COPYRIGHT AND LICENSE

- Copyright (C) 2008-2012 by Xavier Guimard, \<x.guimard@free.fr\>

  - Copyright (C) 2012 by Sandro Cazzaniga, \<cazzaniga.sandro@gmail.com\>

  - Copyright (C) 2012 by François-Xavier Deltombe, \<fxdeltombe@gmail.com.\>

  - Copyright (C) 2010-2012 by Clement Oudot, \<clem.oudot@gmail.com\>

  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 \<http://www.gnu.org/licenses/\>.
