NAME

Lemonldap::NG::Manager::Cli - Command line manager for Lemonldap::NG web SSO system.

SYNOPSIS

  #!/usr/bin/env perl
  
  use warnings;
  use strict;
  use Lemonldap::NG::Manager::Cli;
  
  # Optional: you can specify here some parameters
  my $cli = Lemonldap::NG::Manager::Cli->new(iniFile=>'t/lemonldap-ng.ini');
  
  $cli->run(@ARGV);

or use llng-manager-cli provides with this package.

  llng-manager-cli <options> <command> <keys>

DESCRIPTION

Lemonldap::NG::Manager provides a web interface to manage Lemonldap::NG Web-SSO system.

Lemonldap::NG Manager::Cli provides a command line client to read or modify configuration.

METHODS

ACCESSORS

All accessors can be set using the command line: just set a '-' before their names. Example

  llng-manager-cli -sep ',' get macros,_whatToTrace

iniFile()

The lemonldap-ng.ini file to use is not default value.

sep()

The key separator, default to '/'. For example to read the value of macro _whatToTrace using ',', use:

  llng-manager-cli -sep ',' get macros,_whatToTrace

cfgNum()

The configuration number. If not set, it will use the latest configuration.

yes()

If set to 1, no confirmation is asked to save new values:

  llng-manager -yes 1 set portal http://somewhere/

force()

Set it to 1 to save a configuration earlier than latest

format()

Confirmation array line format. Default to "%-25s | %-25s | %-25s"

log()

String to insert in configuration log field (cfgLog)

run()

The main method: it reads option, command and launch the corresponding subroutine.

Commands

get

Using get, you can read several keys. Example:

  llng-manager-cli get portal cookieName domain

SEE ALSO

For other features of llng-cli, see Lemonldap::NG::Common::Cli

Other links: Lemonldap::NG::Manager, http://lemonldap-ng.org/

AUTHORS

Original idea from David Delassus in 2012
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/.