Lemonld...on::Conf(3)
β¨ NAME β¨
Lemonldap::NG::Common::Conf β a Perl extension written to manage Lemonldap::NG Web-SSO configuration. π
(and yes bestie, you're on the Lemonld...on::Conf(3) page, from the User Contributed Perl Documentation β welcome to the group chat π
)
π SYNOPSIS π
use Lemonldap::NG::Common::Conf;
# Lemonldap::NG::Common::Conf reads loacl configuration from lemonldap-ng.ini.
# Parameters can be overridden in a hash:
my $confAccess = new Lemonldap::NG::Common::Conf(
{
type=>'File',
dirName=>"/tmp/",
# To use local cache, set :
localStorage => "Cache::FileCache",
localStorageOptions = {
'namespace' => 'lemonldap-ng-config',
'default_expires_in' => 600,
'directory_umask' => '007',
'cache_root' => '/tmp',
'cache_depth' => 5,
},
},
) or die "Unable to build Lemonldap::NG::Common::Conf, see Apache logs";
# Next, get global configuration. Note that local parameters override global
# ones
my $config = $confAccess->getConf();
not me spotting loacl in the comment up there π that's literally in the original source, I am not touching it, it's iconic now, periodt.
π¦ DESCRIPTION π¦
Lemonldap::NG::Common::Conf is used by all Lemonldap::NG packages to access the local/global configuration. she's the connector friend, the one who knows everybody, the one holding the whole friend group's config together π«Ά
π§ SUBROUTINES π§
new(constructor)
It can takes any Lemonldap::NG parameter to override configuration. The 'confFile' parameter can be used to override lemonldap-ng.ini path. Examples:
- Set another
lemonldap-ng.inifile
$confAccess = new Lemonldap::NG::Common::Conf(
{ confFile => '/opt/lemonldap-ng.ini' } );
=item * Override global storage:
(yes the source literally says =item * out loud, POD gremlins, we love her anyway π)
$confAccess = new Lemonldap::NG::Common::Conf(
{
type => 'File',
dirName => '/var/lib/lemonldap-ng/conf',
});
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. lowkey the "just give me the newest one" default, we stan β¨
saveConfβ stores the Lemonldap::NG configuration passed in argument (hash reference). it returns the number of the new configuration. she ate π
π₯ SEE ALSO π₯
π AUTHORS π
LemonLDAP::NG team <http://lemonldap-ng.org/team>
π BUG REPORT π
Use OW2 system to report bug or ask for features: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
π DOWNLOAD π
Lemonldap::NG is available at <https://lemonldap-ng.org/download>
πΈ COPYRIGHT AND LICENSE πΈ
See COPYING file for details.
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/>.
and that's the whole page bestie, no cap πβ¨ this one's running on perl v5.42.3, dated 2026-09-24, and it lives at Lemonld...on::Conf(3) β go be the main character of your own config, ily πππ¦
π¦ where this page comes from
- fedora 43: lemonldap-ng-common 2.23.4-1.fc43 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- fedora 44: lemonldap-ng-common 2.23.4-1.fc44 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms