ldapsaisie (3.0.0-1) UNRELEASED; urgency=medium * A lot of code cleaning and PHP notices fixes * Introduce LSurl, a new URL routing manager for LdapSaisie: all pages and files served by the application is now outside the web root directory. * Define base URL in page templates by using public_root_url parameter * Add a CLI commands manager and the ldapsaisie CLI tool that currently permit to: * search/list, show, create, modify and remove LSobject * run procedure implemented in LdapSaisie (useful to run it as cron for instance). * Replace generate_lang_file.php and generate_ldapsaisie.pot.sh script by CLI commands generate_lang_file and generate_ldapsaisie_pot * LSsession: * includeFile(): allow inclusion of external file with include path search support (see $external parameter). * deprecate redirect() method in favor of LSurl :: redirect() * move lang stuff to a dedicated LSlang class * keep trace of already loaded addon to avoid loading it more than once * add default LSprofiles with the name of authenticable object types * LSsearch: * fix handling approx parameter * fix possibility to specify a filter and a pattern (in the same time) * fix sorting by extraDisplayedColumns (on one setParams() call) * fix search customActions JS validation * add option to disable cache on customInfos * LdapObject: * add __toString() method to fix password recovery bug (report by Adrien Malgoyre <adrien.malgoyre@osupytheas.fr>) * change getDisplayName $spe parameter default value from empty string to null * specify object type filter on loading data * LSrelation: globally rework and improve it * LSlog: - fix handling non-string message - add loggers, filters and format message by handlers * LSauth: - Add possibility to configure more than one LSobject type as user - Add possibility to handle duplicated identifier * LSauthMethod::CAS: Remove deprecated LSAUTH_CAS_SERVER_SSL_CERT parameter (since corresponding bogus setCasServerCert() method has been remove in phpCAS) * LSaddon :: mail: Improve mail forging method by using PEAR Mail_mime lib * LSaddon :: LSaccessRigthsMatrixView: fix handling subDn LDAP servers configuration * LSattr_html :: mail: add autocomplete feature * LSattr_html :: select_object: Allow multiple type of objects selection * LSformRile :: imagesize: fix parameters handling problem * LSformRule :: filesize: improve by avoiding to create a temporary file * LSformRule :: email: fix handling domain parameter if its an array * Add ___() function to allow declaration of messages that will be translated at display time * LSimport: fix data removing on LSobject import * LSselect: Allow multiple type of objects selection * Templates: * Globally rework on templates files to use blocks. Common basic templates files are now deprecated in favor to base.tpl and base_connected.tpl: accueil.tpl, blank.tpl, empty.tpl, top.tpl, bottom.tpl * Add var_dump template function helper -- Benjamin Renard <brenard@easter-eggs.com> Wed, 06 May 2020 14:21:48 +0200 ldapsaisie (2.4.1-0) unstable; urgency=medium * generate_lang_file.php : handle LSprofiles's label * Enable globalSearch by default * generate_lang_file.php : add ignore choice in interactive mode * LSsession : improving logging * Fix some translation problems by forcing the LANGUAGE env variable value -- Benjamin Renard <brenard@easter-eggs.com> Mon, 28 Oct 2019 13:03:01 +0100 ldapsaisie (2.4.0-0) unstable; urgency=medium * LSauthMethod_CAS : improve logging * Fix global search button display on Chromium * Fix some PHP 7 warnings * LSsearch : * Add nbObjectsByPageChoices parameter * Add $GLOBALS['NB_LSOBJECT_LIST_CHOICES'] parameter * Update light CSS styles * Add LSattr_ldap :: naiveDate * Add LSaddon LSaccessRightsMatrixView * LSprofiles : add possibility to configure them a label * generate_lang_file.php : fix some problems -- Benjamin Renard <brenard@easter-eggs.com> Fri, 25 Oct 2019 18:02:49 +0200 ldapsaisie (2.3-0) unstable; urgency=medium * LSform_rule :: differentPassword : Add missing LSform :: getValue() function * LSattr_ldap_password : Fix parameters pass to verify_function and add doc about it -- Benjamin Renard <brenard@easter-eggs.com> Mon, 01 Jul 2019 19:16:14 +0200 ldapsaisie (2.2-0) unstable; urgency=medium * LSattr_ldap : * date : Fix handling timezone * password : Rework/improve on password encrypt/decrypt method * Logging / errors reporting : * Globally rework and improve logging by introducing LSlog component * LSerror : fix error formatting when no error code is provided * LSform : warn on error loading LSformRule * LStemplate : * catch error on displaying/fetching templates * display error page on fatal error * Other improvements : * Force search pattern in global search * upgradeFromGit.sh : add gettext MO file change detection * New features : * Add LSformRule :: differentPassword * Add LSaddon mailquota -- Benjamin Renard <brenard@easter-eggs.com> Mon, 01 Jul 2019 17:08:08 +0200 ldapsaisie (2.1-0) unstable; urgency=medium * LSattr_html :: select_list : fix children classes overriding problem * Translations : clean code and improvements * Fix question on remove object page * Add reset search button * Fix global_search in multiple subDn context * Global search : add button to trigger search -- Benjamin Renard <brenard@easter-eggs.com> Wed, 05 Jun 2019 12:41:54 +0200 ldapsaisie (2.0-0) unstable; urgency=medium * LSform : * Don't blame on missing required attribute on non-create form and if attibute is not present in form (or freezed). * Fix display bug when user has no right on the first tab * LSldapObject : fix removing old RDN value after object renaming * LSerror : fix PHP error handling * LSsession : * Fix setLocale() parameter handling * Always log include errors * LSattr_html_maildir : fix PHP error in class contructor * LSformRule :: compare : fix find operator method * LSformElement_password : fix syntax error in getPostData() method * LSsearch : make purgeParams() and purgeCache() methods static * Add SSH LSaddon * LSauth : add afterLogout() trigger * LSauthMethod_HTTP : * add LSAUTHMETHOD_HTTP_LOGOUT_REMOTE_URL parameter * fix constructor to load config before handling it * LSattribute : add help_info_in_view parameter * LSsearchEntry : Fix 'unknwon property error' on accessing undefined attribute * Clarify recover password process by hiding form after the first step * Globally improve configuration information access to avoid duplicated code and PHP warnings. * Log all errors on developpement instance and with magic URL parameter LSdebug * Explicitly defined class methods visibility and upgrade PHP class constructor syntax. Solve static/non-static problems on some methods, parent constructor calls and 'Cannot make non static method' errors. * Increase NB_LSOBJECT_LIST default value to 30 * Add globalSearch feature * Code cleaning / Fix some PHP notices -- Benjamin Renard <brenard@easter-eggs.com> Tue, 21 May 2019 12:17:40 +0200 ldapsaisie (1.8-6) unstable; urgency=medium * Fix bug on LSformElement :: text -> getDependsFields() when using modifiers characters * LSattr_ldap :: password : Add SHA256/SHA512 & SSHA256/SSHA512 support -- Benjamin Renard <brenard@easter-eggs.com> Mon, 04 Feb 2019 18:33:15 +0100 ldapsaisie (1.8-5) unstable; urgency=medium * LSattr_html :: select_list : add translate_labels option * generate_lang_file.php : fix infinity loop case in parse_addon_file() function * LSsearch :: extraDisplayedColumns : add escape parameter * Fix and improve LSformat PHP and JS implementations * Debian packaging : Add php-mbstring as Recommends (need since Debian 9) * LStemplate : Add triggers feature * LSformElement_textarea : fix clear btn/Grammalecte compatibility * Doc : Fix PDF export -- Benjamin Renard <brenard@easter-eggs.com> Mon, 01 Oct 2018 13:31:37 +0200 ldapsaisie (1.8-4) unstable; urgency=medium * LSldapObject : Change getPatternFilter() method to use common LSsearch lib * Security fixes : + Fix XSS problem using LSdebug/LSerror/LSinfos + Fix search pattern validation + Use escape smarty modifier to enforce security * LSsearch : Use strnatcmp instead of strcoll in sorting method * LSattr_html :: jsonCompositeAttribute : fix check required method * LSform : + fix empty submit button problem in some specific cases + add possibility to trigger on init/submit events * Fix moo keybinding * LSdefault : add getCurrentLang() method * Add LSattr_html :: wysiwyg * Add LSaddon exportSearchResultAsCSV * Fix default LSpeople configuration * LSauthMethod::HTTP : support multiple methods to retreive user and password from HTTP server * Documentation : + Improve doc on LSattr_html::pre + Fix PDF doc export generation * Improve LSsession :: loadLSobject() error debugging * LSformElement::boolean : add true_label and false_label parameters * Add parameter to specify default view -- Benjamin Renard <brenard@easter-eggs.com> Thu, 13 Sep 2018 16:27:24 +0200 ldapsaisie (1.8-3) unstable; urgency=medium * Fix local file and custom theme handling -- Benjamin Renard <brenard@easter-eggs.com> Fri, 01 Jun 2018 13:59:17 +0200 ldapsaisie (1.8-2) unstable; urgency=medium * Add missing patch of 1.7-2 Debian package version missing on last version * Add nocache param on JS/CSS URL to avoid cache problems -- Benjamin Renard <brenard@easter-eggs.com> Tue, 22 May 2018 18:52:32 +0200 ldapsaisie (1.8-1) unstable; urgency=medium * LSdefault : encode LSjsConfig data in Base64 * LSattr_html : + password : add get_mail_attr_function parameter + valueWithUnit : add translate_labels, store_integer and round_down parameters + jsonCompositeAttribute : + Add help_info and multiple parameters on components + Fix foreach syntax for retro-compat with old Smarty versions + fix JS clear value method + select_list : + add possiblity to use values of other attribute as possible values + fix warning on empty jsonCompositeAttribute possible values + fix invalid possible values on empty other attribute value * LSldap : fix/improve getAttr() method * LSformElement.js : do not handle sub li elements during initialization * Translation : fix error when trying to translate empty string * ldapsaisie-generate-lang-file (generate_lang_file.php) : + improve to handle new config parameters + add interactive mode + add output file feature + add short parameters -- Benjamin Renard <brenard@easter-eggs.com> Wed, 16 May 2018 17:42:02 +0200 ldapsaisie (1.7-2) unstable; urgency=medium * Fix cron and doc about new tmp dir path -- Benjamin Renard <brenard@easter-eggs.com> Tue, 09 Jan 2018 03:16:01 +0100 ldapsaisie (1.7-1) unstable; urgency=medium * LSattr_html :: date : + Fix default form rule parameters + Add showNowButton and showTodayButton parameters * LSformRule_date : add error if no date format specified * Add generateFunction and additionalAttrs parameters for extraDisplayedColumns * LSatt_html :: jsonCompositeAttributeFix : fix possible values ajax loading * generate_lang_file.php : handle LSattr_html::jsonCompositeAttribute config * LSattr_html :: ssh_key : fix regex * Add LSformRule :: ssh_pub_key * Replace all ereg() function call by preg_match() -- Benjamin Renard <brenard@easter-eggs.com> Mon, 08 Jan 2018 20:27:15 +0100 ldapsaisie (1.6-1) unstable; urgency=medium * LSrelation : + Add create action button + Add create button even if user can't edit the relation * LSldapObject : fix foreach error in getObjectKeyValueInRelation() if attribute is empty * Review LSformRules parameters usage and documentation -- Benjamin Renard <brenard@easter-eggs.com> Tue, 22 Aug 2017 15:45:44 +0200 ldapsaisie (1.5-2) unstable; urgency=medium * LSformElement :: select_box : fix isValidValue() method in inherited context -- Benjamin Renard <brenard@easter-eggs.com> Tue, 27 Jun 2017 15:12:54 +0200 ldapsaisie (1.5-1) unstable; urgency=medium * IMPORTANT : Rename LSattr_ldap :: postalAddress to LSattr_ldap :: postaladdress * Add some basic CSS theme files * Use light blue CSS theme file as default * LSattr_html :: postaladdress : improve it and add default configuration value * LSformElement_select : fix bug when possible_values params is unset or empty * Add cron file to purge old temporary files * Doc : + Improve doc on postalAddress attribute type + Fix <citetitle> HTML element style -- Benjamin Renard <brenard@easter-eggs.com> Mon, 26 Jun 2017 18:37:39 +0200 ldapsaisie (1.4-2) unstable; urgency=medium * Add new type of HTML attribut : jsonCompositeAttribute * LSrelation : + improve and make it easy to configure simple relation + add possibilty to handle relation with multiple key values * Fix some PHP 7 compatibility errors -- Benjamin Renard <brenard@easter-eggs.com> Thu, 11 May 2017 15:32:16 +0200 ldapsaisie (1.4-1) unstable; urgency=medium * LSobject / customAction : add noRedirect parameter * Add button to permit user to refresh his access rights * Fix problems when onlyAccessible parameter is set to True in LSobject configuration file * Add parameters to handle onlyAccessible LSsearch parameter for : + LSsession / subDn + LSattr_html :: select_list + LSattr_html :: select_object * LSattr_html :: select_object : Fix handling filter parameter * Fix view access to specific autorized LSobject even if LSobject type is not in menu -- Benjamin Renard <brenard@easter-eggs.com> Thu, 23 Mar 2017 16:42:25 +0100 ldapsaisie (1.3-2) unstable; urgency=low * LSsearch : Add visibleTo parameter to extra displayed columns * LSldapObject : Add helpInfo parameter for customActions * LSmail : add possibilty to set some display options from JS * LSaddon posix : Fix hard-coded parameter information and add comment for newest functions * LSauthMethod::HTTP : Add parameter to disable checking login/password by LDAP auth challenge * LSattr_html :: select_list : add values_attribute parameter * generate_lang_file.php : some improvements * upgradeFromGit : Clean template cache during upgrade * LSformRule :: date : Fix mktime return check * LSaddon / view : permit to hide a LSaddon view in menu * Some fixes -- Benjamin Renard <brenard@easter-eggs.com> Thu, 02 Feb 2017 12:15:58 +0100 ldapsaisie (1.3-1) unstable; urgency=low * LSaddon : Permit LSaddon to provide ajax function * LSaddon : Permit LSaddon to provide a custom view * LSsession : improve refresh * LSsearch : add formaterFunction parameter for extraDisplayedColumns * Translation : + Improve generate_lang_file.php script : + Initialize LSsession before parsing for messages permiting to resolv some case of complex configurations + Make it callable from anywhere + Automatically imports existing langs files + Add parsing of LSaddons + Update french translation fixing some missing strings * Automatically imports existing langs files * Doc : Fix compatibility with old version of Docbook DTD * Interface : Fix CSS vertical alignment of #status -- Benjamin Renard <brenard@easter-eggs.com> Fri, 21 Aug 2015 18:06:09 +0200 ldapsaisie (1.2-1) unstable; urgency=low * Translation : manage message strings in templates files * Add import feature * Add LSformRule_callable * LSsession : Catch initialization exceptions * Fix Smarty default path to default smarty3 path of Debian package * LSldapObject : Fix method to get rdn value * LSformElement : * valueWithUnit : improve floatint number display and add parameter for formatting control * select_list / select_box : permit to put possible values in labelled group -- Benjamin Renard <brenard@easter-eggs.com> Thu, 30 Jul 2015 16:55:06 +0200 ldapsaisie (1.1-6) unstable; urgency=low * Global : * Allow a sequence of filters in LSobjects profile configurations (Thank B.Dauvergne) * Redefine globals on per LDAP server basic (Thank B.Dauvergne) * Add global parameter defaultCSSfiles * LSsupann addon : Convert all defines to globals (Thank B.Dauvergne) * LSattr_html :: password : Add possibility to generate password using pwgen command * LSformElement :: select_object : Add ordered feature * LSattr_ldap :: boolean : Add default TRUE/FALSE values * view.tpl : use double quotes instead of simple in HTML -- Benjamin Renard <brenard@easter-eggs.com> Mon, 09 Feb 2015 11:26:00 +0100 ldapsaisie (1.1-5) unstable; urgency=low * Improove generate_lang_file.php script * Add support of supannActivite attribute * LSldap : fix combineFilters() method * LSldapObject : fix getObjectFilter() * Fix fr_FR.UTF8 translation -- Benjamin Renard <brenard@easter-eggs.com> Mon, 05 Jan 2015 16:58:18 +0100 ldapsaisie (1.1-4) unstable; urgency=low * LSaddons :: supann : * Complet redesign and improve * Redesign LSformElement : supannLabeledValue / supannRoleEntite * Add LSformElement : supannEmpCorps / supannEtuInscription / supannCompositeAttribute * LSsearch : fix bug in sort direction * LSsession : * Fix bug resolving user's LSprofiles * Add useUserCredentials parameter * LSform : * block form validation if element's errors is defined * preserve current tab between view, modify and create pages * LSformElement : * add no_value_label parameter * JS : permit form element to provide custom clean value method * provide class name of element in template variables * LSerror : Add PHP error handler * Function getFData() : try to catch error casting data to string -- Benjamin Renard <brenard@easter-eggs.com> Thu, 27 Nov 2014 10:35:22 +0100 ldapsaisie (1.1-3) unstable; urgency=low * Doc : * Add method to export documentation in EPUB format * Some fix * LSsearch : * Fix sort feature to be case insensitive * Add customAction feature * LSformRule :: alphanumeric : Add parameter to allow accent * LSformat : Full support format in JS and improve substr * Add common function now() * LSattr_html :: select_list : Add sort feature * LSformElement :: select_object : Add sort feature -- Benjamin Renard <brenard@easter-eggs.com> Wed, 08 Oct 2014 17:26:30 +0200 ldapsaisie (1.1-2) unstable; urgency=low * New features : * Add LSattr_html::select_box * LSformRule :: password : Added minValidRegex parameter and use preg_match() function instead of deprecated ereg() * Bugs fixed : * LSformElement :: text : fixed bug breaking autoGenerateOnModify feature * JS / getFData() : fixed bug permitting to support than method() return array of string * LSform : fixed JS bug leaving previous errors messages in form * Improve debian rules file -- Benjamin Renard <brenard@easter-eggs.com> Mon, 30 Jun 2014 13:53:20 +0200 ldapsaisie (1.1-1) unstable; urgency=low * New features : * Add possibility to add extra displayed columns in object search result * Add inarray LSformRule * LStemplate : add registerFunction() method permitting to register function usable by in template * LSform.js : add method getInput() and use it in method getValue() * LSformElement_text : use getValue/getInput of LSform object instead of LSformElement_text to permit value generation with more form element type * Bugs fixed : * Core : Fix error reporting * LSldapObject : remove unsed variable $submitError fixing object's after_modify trigger bug * LSattr_html_select_list : Use more robust inarray LSformRule instead of regex * LSrelation : fixed refresh bug when multiple relations content the same object * Doc : * Added informations about LSattr_html_valueWithUnit * Added details about regex format using in regex check_data -- Benjamin Renard <brenard@easter-eggs.com> Tue, 17 Jun 2014 16:18:01 +0200 ldapsaisie (1.0-11) unstable; urgency=low * Add ldapsaisie-generate-lang-file command * LSformElement_select_object : Added filter parameter * Bugs fixed : * LSformElement_password : fixed mail_attr parameter reading method * Fixed some vales check to globally permit 'zero string' value * LSsearch::setParams() : fixed attributes setting * LSldapObject::listObjects() : removed 'dn' as attribute asked in LSsearch -- Benjamin Renard <brenard@aconit.easter-eggs.fr> Wed, 27 Nov 2013 18:26:55 +0100 ldapsaisie (1.0-10) unstable; urgency=low * Added documentation about LSformat modifiers * LSattr_html_select_list : fixed bug with number key value * generate_lang_file.php : Added inclusion of local directory and --additional-file-format parameter * LSldap : fixed problem with empty attribute on adding * LSsearch : Fixed bug on no attributes specifies in config for LSsearch * LSauthMethod::anonymous : Added parameter LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT * LSaddon :: samba : added some new functions to generate attributes values * Added new LSattr_ldap :: shadowExpire -- Benjamin Renard <brenard@easter-eggs.com> Fri, 26 Jul 2013 12:23:20 +0200 ldapsaisie (1.0-9) unstable; urgency=low * Fixed config.inc.php problem on upgrade -- Benjamin Renard <brenard@easter-eggs.com> Tue, 09 Jul 2013 13:56:24 +0200 ldapsaisie (1.0-8) unstable; urgency=low * Added LSaddon::phpLdapAdmin * Disabled Apache directory listing and force FollowSymLinks option -- Benjamin Renard <brenard@easter-eggs.com> Fri, 28 Jun 2013 17:28:25 +0200 ldapsaisie (1.0-7) unstable; urgency=low * LSsearch : Added searchLSformat and approxLSformat parameter for searched attributes * Added local LSaddons and LSauth directories * Moved local directory in /usr/local/ldapsaisie -- Benjamin Renard <brenard@easter-eggs.com> Fri, 28 Jun 2013 12:09:23 +0200 ldapsaisie (1.0-6) unstable; urgency=low * LStemplate : fixed template missing warning caused by Smarty3 peculiarities * LSformElement_password : added clearView and clearEdit parameters * LSaddon::posix : added generate_memberUidFromUniqueMember() function -- Benjamin Renard <brenard@easter-eggs.com> Thu, 27 Jun 2013 15:08:16 +0200 ldapsaisie (1.0-5) unstable; urgency=low * Manage CSS path with LStemplate * Update documentation * Fixed last release bugs -- Benjamin Renard <brenard@zionetrix.net> Wed, 19 Jun 2013 04:04:39 +0200 ldapsaisie (1.0-4) unstable; urgency=low * Added image.php to permit fully dynamic image path (including via JS) -- Benjamin Renard <brenard@zionetrix.net> Wed, 19 Jun 2013 02:20:39 +0200 ldapsaisie (1.0-3) unstable; urgency=low * Manage image path with LStemplate (that permit local image) -- Benjamin Renard <brenard@zionetrix.net> Wed, 19 Jun 2013 00:58:51 +0200 ldapsaisie (1.0-2) unstable; urgency=low * Added LStemplate component permited template customization * Handle PHP error messages * Remove noisy files * Improve LSexample (shema, LDIF and slapd configuration) * LSformElement::valueWithUnit : sort units params before using -- Benjamin Renard <brenard@zionetrix.net> Mon, 17 Jun 2013 23:42:58 +0200 ldapsaisie (1.0-1) unstable; urgency=low * Initial Debian release -- Benjamin Renard <brenard@zionetrix.net> Tue, 31 Mar 2013 05:25:12 +0100