---
name: "Lemonldap::NG::Manager::Conf::Parser"
section: "3pm"
platform: "linux"
package: "liblemonldap-ng-manager-perl"
version: "2.21.2+ds-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Lemonldap::NG::Manager::Conf::Parser"
---

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

Perl extension for parsing new uploaded configurations.

## NAME

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

## SYNOPSIS

```
  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} );
  }
```

## DESCRIPTION

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

## SEE ALSO

Lemonldap::NG::Manager, \<http://lemonldap-ng.org/\>

## 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\>

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.

## 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/\>.
