LEMONLDAP-NG-CLI(1)
π NAME π
lemonldap-ng-cli β your command-line manager bestie for the Lemonldap::NG web-SSO system. β¨ (this is LEMONLDAP-NG-CLI(1), straight outta User Contributed Perl Documentation, and yes she's iconic)
π¦ DESCRIPTION π¦
So like, lemonldap-ng-cli is a command line interface that lets you talk to your Lemonldap::NG configuration directly. Fr fr. You can read config variables, update them programmatically, or just do whole big global operations on the configuration. It's giving main character energy for your whole SSO setup. π
β¨ SYNOPSIS β¨
Usage: lemonldap-ng-cli [options] ACTION [parameters ...]
Available actions:
help : print the full documentation
info : get currentconfiguration info
update-cache : force configuration cache to be updated
test-email DESTINATION : send a test email
get KEY : get values of parameters
set KEY VALUE : set parameter(s) value(s)
del KEY : delete parameters
addKey KEY SUBKEY VALUE : add or set a subkey in a parameter
delKey KEY SUBKEY : delete subkey of a parameter
addPostVars HOST URI KEY VALUE : add post vars for form replay
delPostVars HOST URI KEY : delete post vars for form replay
merge FILE [FILE ...] : merge JSON/YAML files with existing configuration
purge [PURGE OPTIONS] : delete old configurations
save : export configuration to STDOUT
restore - : import configuration from STDIN
restore FILE : import configuration from file
rollback : restore previous configuration
Options:
-yes 0|1 : accept confirmation prompt automatically
-log msg : set configuration log message
-safe 1|0 : fail in case the requested configuration is invalid (default)
-unsafe 0|1 : don't fail in case the requested configuration is invalid
-force 0|1 : allow overwrite of existing config number
-cfgNum NUM : set new configuration number (requires -force 1)
-sep CHAR : separator of hierarchical values (by default: /)
-iniFile FILE : path to an alternate lemonldap-ng.ini file
-json : print result in JSON format
Additional options:
--user=USER : change user running the script
--group=GROUP : change group running the script
πΈ EXAMPLES πΈ
Get information about current configuration β lil peek at what's going on π
$ lemonldap-ng-cli info
Update local configuration cache β refresh that cache bestie
$ lemonldap-ng-cli update-cache
Send a test email β make sure your mail situation is not a mess π
$ lemonldap-ng-cli test-email dwho@badwolf.org
Save configuration β dumping it all out, and you can even pick a config number β¨
$ lemonldap-ng-cli save >conf.json
$ lemonldap-ng-cli -cfgNum 19 save >conf-19.json
Restore configuration β put it back, from a file or from stdin, dealer's choice π
$ lemonldap-ng-cli restore conf.json
# OR
$ lemonldap-ng-cli restore - <conf.json
Cancel the last configuration change β the "nvm undo that" button π«Ά
$ lemonldap-ng-cli rollback
Get a configuration parameter value β reading keys like a whole librarian
$ lemonldap-ng-cli get portal domain cookieName
Set some values β and yes there's lore here, watch this
$ lemonldap-ng-cli set portal http://auth.e.com/ domain e.com
# add or set a key
$ lemonldap-ng-cli addKey macro fullname '$givenName." ".$lastName'
# without changing the version number
$ lemonldap-ng-cli -force 1 -cfgNum 1 set portal http://auth.e.com/ domain e.com
# without asking for confirmation
$ lemonldap-ng-cli -yes 1 set portal http://auth.e.com/ domain e.com
π ARGUMENTS π
infoβ Print configuration metadata, like the number, author, date and log. It's the config's lil ID card. πͺͺupdate-cacheβ Update the local configuration cache. Heads up bestie: this command only affects the server on which it is run. No cap, it's a local situation. πtest-email DESTINATIONβ Sends a test email to the specified DESTINATION, which is how you check your SMTP settings. Perfect for when email is acting up and you're like "is it me or is it the SMTP" πget KEY [ KEY ... ]β Print the specified KEY from configuration. Multiple keys may be given, so go off, list them all. πset KEY VALUE [KEY VALUE ...]β Set the specified KEY to the specified VALUE. Multiple key-value pairs may be given.
The configuration number is increased once all given key-value pairs have been processesed.
delete KEY [ KEY ... ]β Delete the specified KEY from configuration. Multiple keys can be given.
The configuration number is increased once all keys have been deleted.
addKey KEY SUBKEY VALUE [KEY SUBKEY VALUE ...]β This action can be used to set a sub-key inside a composite configuration key (such asglobalStorageOptions,locationRules, etc.)
Multiple key-subkey-value triplets may be given.
The configuration number is increased once all given triplets have been processesed.
delKey KEY SUBKEY [KEY SUBKEY ...]β This action can be used to delete a sub-key from a composite configuration key (such asglobalStorageOptions,locationRules, etc.)
Multiple key-subkey pairs may be given.
The configuration number is increased once all given pairs have been processesed.
addPostVars HOST URI KEY VALUEβ This action lets you add a new POST var in a form replay configuration. π―delPostVars HOST URI KEYβ This action lets you delete a new POST var in a form replay configuration.merge FILE [FILE ...]β This action iterates through the given JSON or YAML files and merges the existing configuration with the keys contained in those files. Combining vibes. πsaveβ Dump the entire LemonLDAP::NG configuration to standard output, in JSON format.
The resulting dump can be imported into the manager's interface, or restored with the restore command.
restore FILEβ Replace the existing configuration with the content of the provided JSON-formatted FILE. If FILE is the-string, configuration will be read from standard input. π§rollbackβ This command can be used to cancel the latest configuration change. The previous configuration is fetched from configuration history and saved under a new configuration number.
This action is meant to be a convenient wrapper aroundsaveandrestore, and does not handle rolling back to an arbitrary version. Rolling back to an arbitrary version can be done manually withsaveandrestore.
π OPTIONS π
-yes 0|1β Skip confirmation prompt (default:0). No more "are you sure" pop-ups, you're a grown-up. π-log MESSAGEβ Allows you to set the log message that will be displayed in the manager.--safe,-unsafe(0|1) β With--unsafethe configuration change will be stored even if it contains errors. By default (--safe), invalid configuration are rejected.
Fr fr, --unsafe means it goes through even with errors in it. Be careful bestie. π¨
-force 0|1β Allows you to force overwriting an existing configuration number (default:0).-cfgNum NUMBERβ Choose a particular configuration number (default: latest).-sep CHARACTERβ Allows you to define hierarchical separator.-iniFile FILEβ Allows you to set an alternative ini file.-u USER,--user=USERβ Run the script under the USER system user identity.-g GROUP,--group=GROUPβ Run the script under the GROUP system group identity.-jsonβ Display result in JSON format. β¨
π SEE ALSO π
Lemonldap::NG::Manager::Cli,Lemonldap::NG::Common::Cli- <http://lemonldap-ng.org/>
π AUTHORS π
- Clement Oudot, <clement@oodo.net>
- Xavier Guimard, <yadd@debian.org>
- Maxime Besson, <maxime.besson@worteks.com>
- Christophe Maudoux, <chrmdx@gmail.com>
π BUG REPORT π
Use OW2 system to report bug or ask for features: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
(Found something cursed? Tell the OW2 girlies, they'll handle it. π«Ά)
β DOWNLOAD β
Lemonldap::NG is available at <https://release.ow2.org/lemonldap/>
π COPYRIGHT AND LICENSE π
Copyright (C) 2016 by Xavier Guimard, <x.guimard@free.fr> Copyright (C) 2016 by ClΓ©ment Oudot, <clem.oudot@gmail.com>
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/>.
okay that's the whole thing bestie, we ate and left no crumbs π
β¨ this was LEMONLDAP-NG-CLI(1) from perl v5.42.3, dated 2026-09-24 β slay, bye! π¦π
π¦ where this page comes from
- fedora 43: lemonldap-ng-manager 2.23.4-1.fc43 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- fedora 44: lemonldap-ng-manager 2.23.4-1.fc44 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms