Commit graph

29 commits

Author SHA1 Message Date
Benjamin Renard 9907e08f18 Code cleaning 2021-08-25 18:02:37 +02:00
Benjamin Renard e099a27533 Add dynamic groups support (with cache members attributes)
Add LSaddon dyngroup with feature to handle update static cache members
attributes on users or dyngroup URI changes. The update process could
also be runned using CLI update_dyngroups_members_cache command
(allowing cron task configuration).

LSexample also evoluate to add example of dynamic groups implementation.
On this occasion, the restore_lsexample script was completely rewrited.
2021-07-21 19:42:22 +02:00
Benjamin Renard f635ad609a Add test_form_rule CLI command
You have to manually load LSformRule class to use this command, for 
instance :

ldapsaisie -L LSformRule test_form_rule integer 12
2021-07-21 16:03:33 +02:00
Benjamin Renard 2b6b8ce270 Fix project URLs and list emails addresses 2021-04-13 18:04:19 +02:00
Benjamin Renard f36c989136 Add import & export CLI commands 2021-02-05 18:12:44 +01:00
Benjamin Renard f0ef642cf0 LScli::add_command(): fix typo in comment 2020-08-25 20:33:08 +02:00
Benjamin Renard a8e2ecc343 Translate LSerror message at formating/diplaying time
It's permit to be sure to translate message in the right user language, 
even if its context isn't loaded at error emission time.
2020-08-25 17:31:50 +02:00
Benjamin Renard a7d202e5ff LScli: add --trace parameter 2020-08-24 18:03:50 +02:00
Benjamin Renard 6eee099bd2 LScli: fix --sub-dn autocompletion even if LDAP server not selected 2020-08-07 11:09:20 +02:00
Benjamin Renard 5bbe076e23 LScli: fix handling LDAP servers with configured subDn
In case of LDAP server with configured subDn, always select a subDn, 
even if user didn't make it with --sub-dn parameter. Futhermore, in BASH 
autocompletion, autocomplete LSobject types with only available ones in 
current subDn.
2020-08-07 10:39:41 +02:00
Benjamin Renard 14f28a1ec0 LScli: add global --sub-dn parameter 2020-08-06 16:43:50 +02:00
Benjamin Renard 1420439403 LScli: fix autocomplete_LSobject_types() in case of configured subDn 2020-08-06 15:11:41 +02:00
Benjamin Renard a21b40d706 LScli autocompleter: fix handling quoted arguments 2020-07-06 17:53:54 +02:00
Benjamin Renard daac4db329 Improve LScli :: autocomplete_LSobject_dn() to provide RDN attribute on empty compword 2020-06-23 15:58:37 +02:00
Benjamin Renard 4ba584e8c6 Add autocompleter for CLI command show 2020-06-15 11:26:57 +02:00
Benjamin Renard 559f9d9475 Add autocompleter for CLI command search 2020-06-15 10:40:48 +02:00
Benjamin Renard a65322335e LScli::bash_autocomplete(): run command autocompleter with command args instead of complete command args 2020-06-15 08:55:00 +02:00
Benjamin Renard 3494cc55c8 LScli: add BASH autocompletion support 2020-06-15 08:22:55 +02:00
Benjamin Renard 8b4b227327 LScli: fix console logging to always log at least errors (excepted in quiet mode) 2020-05-14 10:51:18 +02:00
Benjamin Renard 1de6d1d25e LScli : add confirm helper method 2020-05-08 20:33:42 +02:00
Benjamin Renard 3e0829ba31 LScli : use LSlog_logger 2020-05-08 15:20:29 +02:00
Benjamin Renard 03255e41f4 LScli : add run_external_command() helper method 2020-05-06 19:56:37 +02:00
Benjamin Renard eb2b939dfe LScli : fix comment on run_command method 2020-05-06 19:48:13 +02:00
Benjamin Renard 4828ac6b30 LScli : fix warnings about run_command CLI 2020-05-06 18:34:27 +02:00
Benjamin Renard fbba445106 LScli : add possibility to run command without LDAP connection 2020-05-06 18:33:31 +02:00
Benjamin Renard 9028414568 LScli :: handle_args() : check CLI context 2020-05-06 18:01:16 +02:00
Benjamin Renard 4bed3e6c17 LScli ; Move command execution in a dedicated run_command() method 2020-05-06 18:00:47 +02:00
Benjamin Renard fe4ef419fd LScli :: usage() : only show current executed command message (if already specified) 2020-05-06 17:46:08 +02:00
Benjamin Renard 7098b3ee79 Massive change of files organisation to move all files outside web-root
The web-root directory now contains URL rewrite stuff. All PHP & static files are
in root src directory and are served via LSurl routes.
2020-05-06 12:17:35 +02:00
Renamed from public_html/includes/class/class.LScli.php (Browse further)