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 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 dbiChain => 'DBI:mysql:database=lemonldap-ng,host=1.2.3.4', dbiUser => 'lemonldap' dbiPassword => 'pass' dbiTable => 'lmConfig', });

  • 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, CGI

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright (C) 2006 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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 141:

Expected '=item *'