---
name: "Lemonldap::NG::Handler::AuthBasic"
section: "3pm"
platform: "linux"
package: "liblemonldap-ng-handler-perl"
version: "1.3.3-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Lemonldap::NG::Handler::AuthBasic"
---

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

Perl extension to be able to authenticate users by basic web system but to use Lemonldap::NG to control authorizations.

## NAME

Lemonldap::NG::Handler::AuthBasic - Perl extension to be able to authenticate users by basic web system but to use Lemonldap::NG to control authorizations.

## SYNOPSIS

Create your own package:

```
  package My::Package;
  use Lemonldap::NG::Handler::AuthBasic;

  # IMPORTANT ORDER
  our @ISA = qw (Lemonldap::NG::Handler::AuthBasic);

  __PACKAGE__->init ( {
    # 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",
    }
    # Uncomment this to activate status module
    # status                => 1,
  } );
```

Call your package in \<apache-directory\>/conf/httpd.conf

```
  PerlRequire MyFile
  PerlHeaderParserHandler My::Package
```

## DESCRIPTION

This library provides a way to use Lemonldap::NG to manage authorizations without using Lemonldap::NG for authentications. This can be used in conjunction with a normal Lemonldap::NG installation but to manage non-browser clients.

## SEE ALSO

*Lemonldap::NG::Handler*(3), \<http://lemonldap-ng.org/\>

## AUTHOR

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

  - Francois-Xavier Deltombe, \<fxdeltombe@gmail.com.\>

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

  ## 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, 2009, 2010 by Xavier Guimard, \<x.guimard@free.fr\>

  - Copyright (C) 2012, 2013 by Francois-Xavier Deltombe, \<fxdeltombe@gmail.com.\>

  - Copyright (C) 2010, 2011, 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/\>.
