---
name: "Lemonldap::NG::Manager::Conf"
section: "3pm"
platform: "linux"
package: "liblemonldap-ng-conf-perl"
version: "0.9.2-1.1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Lemonldap::NG::Manager::Conf"
---

# Lemonldap::NG::Manager::Conf(3pm)

Perl extension written to manage Lemonldap::NG Web-SSO configuration.

## NAME

Lemonldap::NG::Manager::Conf - Perl extension written to manage Lemonldap::NG Web-SSO configuration.

## SYNOPSIS

```
  use Lemonldap::NG::Manager::Conf;
  my $confAccess = new Lemonldap::NG::Manager::Conf(
                  {
                  type=>'File',
                  dirName=>"/tmp/",
                  },
    ) or die "Unable to build Lemonldap::NG::Manager::Conf, see Apache logs";
  my $config = $confAccess->getConf();
```

## DESCRIPTION

Lemonldap::NG::Manager::Conf provides a simple interface to access to Lemonldap::NG Web-SSO configuration. It is used by Lemonldap::NG::Handler, Lemonldap::NG::Portal and Lemonldap::NG::Manager.

### SUBROUTINES

- •

  **new** (constructor): it takes different arguments depending on the choosen type. Examples:

  - •

    **File**:\
       `$confAccess` = new Lemonldap::NG::Manager::Conf(\
                     {\
                     type    =\> 'File',\
                     dirName =\> '/var/lib/lemonldap-ng/',\
                     });

  - •

    **DBI**:\
       `$confAccess` = new Lemonldap::NG::Manager::Conf(\
                     {\
                     type        =\> 'DBI',\
                     dbiChain    =\> 'DBI:mysql:database=lemonldap-ng;host=1.2.3.4',\
                     dbiUser     =\> 'lemonldap'\
                     dbiPassword =\> 'pass'\
                     dbiTable    =\> 'lmConfig',\
                     });

  - •

    **SOAP**:\
       `$confAccess` = new Lemonldap::NG::Manager::Conf(\
                     {\
                     type         =\> 'SOAP',\
                     proxy        =\> 'https://manager.example.com/soapmanager.pl',\
                     proxyOptions =\> {\
                                     timeout =\> 5,\
                                     },\
                     });

    SOAP configuration access is a sort of proxy: the SOAP server that runs Lemonldap::NG::Manager::SOAPServer is configured to use the real session storage type (DBI or File for example). See Lemonldap::NG::Conf::SOAP for more.

  WARNING: You have to use the same storage type on all Lemonldap::NG parts in the same server.

- •

  **getConf**: returns a hash reference to the configuration. it takes a hash reference as first argument containing 2 optional parameters:

  - •

    `"cfgNum ="` `$number`\>: the number of the configuration wanted. If this argument is omitted, the last configuration is returned.

  - •

    `"fields ="` \[array of names\]: the desired fields asked. By default, getConf returns all (`"select * from lmConfig"`).

- •

  **saveConf**: stores the Lemonldap::NG configuration passed in argument (hash reference). it returns the number of the new configuration.

## SEE ALSO

Lemonldap::NG::Handler, Lemonldap::NG::Portal, http://wiki.lemonldap.objectweb.org/xwiki/bin/view/NG/Presentation

## AUTHOR

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

## BUG REPORT

Use OW2 system to report bug or ask for features: \<http://forge.objectweb.org/tracker/?group\_id=274\>

## DOWNLOAD

Lemonldap::NG is available at \<http://forge.objectweb.org/project/showfiles.php?group\_id=274\>

## COPYRIGHT AND LICENSE

Copyright (C) 2006-2007 by Xavier Guimard

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
