Scroll to navigation

Lemonldap::NG::Manager::Conf::Parser(3pm) User Contributed Perl Documentation Lemonldap::NG::Manager::Conf::Parser(3pm)


Lemonldap::NG::Manager::Conf::Parser - Perl extension for parsing new uploaded configurations.


  require Lemonldap::NG::Manager::Conf::Parser;
  my $parser = Lemonldap::NG::Manager::Conf::Parser->new(
      { tree => $new, refConf => $self->currentConf }
  my $res = { result => $parser->check };
  $res->{message} = $parser->{message};
  foreach my $t (qw(errors warnings changes)) {
      push @{ $res->{details} }, { message => $t, items => $parser->$t }
        if ( @{$parser->$t} );


Lemonldap::NG::Manager::Conf::Parser checks new configuration

This package is used by Manager to examine uploaded configuration. It is currently called using check() which return a boolean. check() looks if a newConf is available. If not, it builds it from uploaded JSON (using scanTree() subroutine)

Messages are stored in errors(), warnings() and changes() as arrays.

This interface uses Plack to be compatible with CGI, FastCGI,...


Lemonldap::NG::Manager, <>



Use OW2 system to report bug or ask for features: <>

If you want to report a bug concerning configuration upload, please change HIGHDEBUG constant value to produce more logs. Then post them in the Gitlab ticket.


Lemonldap::NG is available at <>


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 <>.

2023-05-13 perl v5.32.1