1Lemonldap::NG::Manager:U:sCeornfC:o:nPtarrisbeurt(e3d)PLeermlonDlodcaupm:e:nNtGa:t:iMoannager::Conf::Parser(3)
2
3
4
6 Lemonldap::NG::Manager::Conf::Parser - Perl extension for parsing new
7 uploaded configurations.
8
10 require Lemonldap::NG::Manager::Conf::Parser;
11 my $parser = Lemonldap::NG::Manager::Conf::Parser->new(
12 { tree => $new, refConf => $self->currentConf }
13 );
14 my $res = { result => $parser->check };
15 $res->{message} = $parser->{message};
16 foreach my $t (qw(errors warnings changes)) {
17 push @{ $res->{details} }, { message => $t, items => $parser->$t }
18 if ( @{$parser->$t} );
19 }
20
22 Lemonldap::NG::Manager::Conf::Parser checks new configuration
23
24 This package is used by Manager to examine uploaded configuration. It
25 is currently called using check() which return a boolean. check()
26 looks if a newConf is available. If not, it builds it from uploaded
27 JSON (using scanTree() subroutine)
28
29 Messages are stored in errors(), warnings() and changes() as arrays.
30
31 This interface uses Plack to be compatible with CGI, FastCGI,...
32
34 Lemonldap::NG::Manager, <http://lemonldap-ng.org/>
35
37 LemonLDAP::NG team <http://lemonldap-ng.org/team>
38
40 Use OW2 system to report bug or ask for features:
41 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
42
43 If you want to report a bug concerning configuration upload, please
44 change HIGHDEBUG constant value to produce more logs. Then post them in
45 the Gitlab ticket.
46
48 Lemonldap::NG is available at <https://lemonldap-ng.org/download>
49
51 See COPYING file for details.
52
53 This library is free software; you can redistribute it and/or modify it
54 under the terms of the GNU General Public License as published by the
55 Free Software Foundation; either version 2, or (at your option) any
56 later version.
57
58 This program is distributed in the hope that it will be useful, but
59 WITHOUT ANY WARRANTY; without even the implied warranty of
60 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
61 General Public License for more details.
62
63 You should have received a copy of the GNU General Public License along
64 with this program. If not, see <http://www.gnu.org/licenses/>.
65
66
67
68perl v5.36.1 2023-1L1e-m1o4nldap::NG::Manager::Conf::Parser(3)