Lemonld...ger::Cli(3)

πŸŽ€ Lemonld...ger::Cli(3) πŸŽ€

okay so this is the Lemonld...ger::Cli(3) page, straight out of the User Contributed Perl Documentation πŸ’– pull up a chair bestie, we're reading a whole manpage together and it's gonna slay.


✨ NAME ✨

Lemonldap::NG::Manager::Cli β€” a command line manager for the Lemonldap::NG web SSO system. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

you can literally just do this in Perl:

#!/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, and this is the move honestly, use llng-manager-cli which ships with this package πŸ‘‘

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

🌸 DESCRIPTION 🌸

Lemonldap::NG::Manager gives you a whole web interface to manage the Lemonldap::NG Web-SSO system. cute, right?

Lemonldap::NG Manager::Cli is the command line client version, so you can read or modify configuration without leaving your terminal. no cap. πŸ”₯


πŸ’œ METHODS πŸ’œ

πŸ”‘ ACCESSORS πŸ”‘

okay so the way this works: all accessors can be set using the command line β€” you just slap a - before their names. that's it. that's the whole trick. example:

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

  • iniFile() β€” the lemonldap-ng.ini file to use, when the one you want isn't the default value. πŸ—‚οΈ
  • sep() β€” the key separator, and it defaults to /. so like, if you wanted to read the value of macro _whatToTrace using , as your separator, you'd go:
llng-manager-cli -sep ',' get macros,_whatToTrace
  • cfgNum() β€” the configuration number. if you don't set it, it will use the latest configuration. (main character default behaviour fr fr ✨)
  • yes() β€” set it to 1 and 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() β€” the confirmation array line format. defaults to "%-25s | %-25s | %-25s" πŸŽ€
  • log() β€” a string to insert in the configuration log field (cfgLog).

πŸƒ run() πŸƒ

the main method, bestie: it reads option, command and launches the corresponding subroutine. that's the whole job.

πŸ“œ Commands

get β€” using get, you can read several keys. example:

llng-manager-cli get portal cookieName domain

purge β€” use purge to delete configurations πŸ§ΉπŸ—‘οΈ

  • the purge --keep-last <N> command keeps only the Nth latest configurations.
  • the purge --keep-recent <N> command keeps only the configurations that have been created less than N seconds ago.

πŸ‘€ 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 the OW2 system to report a bug or ask for features, bestie: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>

(we love a structured bug report, it's giving organised πŸ’…)


πŸ“₯ DOWNLOAD πŸ“₯

Lemonldap::NG is available at <https://lemonldap-ng.org/download> πŸ¦‹


see the 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 of the License, 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. 😭 (yes this part is serious, don't skip it)

you should have received a copy of the GNU General Public License along with this program. if not, see <http://www.gnu.org/licenses/>.


sign-off moment πŸ’– this whole thing was brought to you by perl v5.42.3, dated 2026-09-24, and it lives at Lemonld...ger::Cli(3). go forth and manage your config, bestie, you're gonna ate. 🫢✨
πŸ“¦ where this page comes from