Commit Graph

3199 Commits

Author SHA1 Message Date
Clément Oudot
efd99fde90 In old Perl version, shift only accepts ARRAY 2014-06-29 12:57:36 +00:00
Clément Oudot
7b94ed263b Session kind can be undef (example: persistent session from 1.3 version) 2014-06-29 12:56:08 +00:00
François-Xavier Deltombe
4f2d8404bb Remove a test to localInit() method, removed at prevous revision 2014-06-27 16:44:14 +00:00
François-Xavier Deltombe
6aa06d2d40 Handler: remove useless call to defaultValuesInit at server startup, move
remaining methods of LocalInit into SharedConf and remove LocalInit.pm (#630)
2014-06-27 16:20:51 +00:00
François-Xavier Deltombe
7cfff88ac5 Handler::SharedConf simplified: localInit merged() in init()
and testConf() and setConf() merged into checkConf() (#630)
2014-06-27 14:17:13 +00:00
Clément Oudot
6a120c7ed3 Various fix for RPM packaging 2014-06-27 14:12:54 +00:00
Clément Oudot
ac7a5ef969 Upgrade to Bootstrap 3.2.0 (#670) 2014-06-27 13:27:08 +00:00
François-Xavier Deltombe
cf00c2db20 Handler: send session cache params to Status process only at config reload (#630) 2014-06-27 10:33:09 +00:00
François-Xavier Deltombe
f21f54c6c0 Remove LL::NG::Handler::Main::unprotect method, since it is unsafe
(does not hide cookie) and can be replaced with SKIP (#630)
2014-06-26 15:36:50 +00:00
François-Xavier Deltombe
3204fe8fb0 Handler: session cache not initialize at startup anymore (this is done by
Common::Session), and not required anymore by Status module (#630)
2014-06-26 15:12:31 +00:00
François-Xavier Deltombe
84775d306b Remove a redundant var declaration 2014-06-25 16:09:05 +00:00
François-Xavier Deltombe
03ae29f651 LL::NG::Handler::Main reverted to rev 3426 (it was an error) and perltidied 2014-06-25 16:03:30 +00:00
Clément Oudot
3796a9e18a Do not force epxiration time in code, use default_expires_in cache option instead (#712) 2014-06-25 14:15:22 +00:00
Clément Oudot
3c5be4821e Set default cache depth to 3 (#712) 2014-06-25 14:12:46 +00:00
Clément Oudot
793e28be10 Store session in cache if session found in backend (#712) 2014-06-25 14:11:04 +00:00
Clément Oudot
f21184a59c Call authInit in MailReset to get the authentication choice (#664) 2014-06-25 12:58:15 +00:00
Clément Oudot
b72d79a30b Better connection management (#663, #LEMONLDAP-664):
- Create userDBFinish, passwordDBFinish and registerDBFinish methods
- Call finish methods for each backend in process
- Call LDAP unbind only when necessary
- Unbind if error in RegisterDBLDAP
2014-06-25 11:53:09 +00:00
François-Xavier Deltombe
70ec1d03cb Refactor LL::NG::Handler::Specific::AuthBasic (#630) 2014-06-25 10:01:17 +00:00
Clément Oudot
941c27631c Disconnect from LDAP when error occurs, and enable cache management even with Multi backend (#664) 2014-06-23 12:45:27 +00:00
Clément Oudot
509e8fcf23 Do not update session if we just need to read it (#711) 2014-06-20 16:16:21 +00:00
François-Xavier Deltombe
61e02f1a3f Handler: to prevent a slight bug in tests (#630) 2014-06-19 17:55:36 +00:00
François-Xavier Deltombe
52db234bf7 Handler: Rename vars $apacheRequest and $mess into $r and $msg (#630) 2014-06-19 17:53:04 +00:00
François-Xavier Deltombe
3aaf1c9aa1 Add IPv6 local subnet in default handler Apache|Nginx config file 2014-06-19 17:12:45 +00:00
François-Xavier Deltombe
4b844b7e07 Handler: refresh method renamed into reload (#630) 2014-06-19 17:04:02 +00:00
François-Xavier Deltombe
2d81231daf Make config reload request to Handler simpler
and remove dependencies to Apache mod_perl 2 (#630)
2014-06-19 17:00:35 +00:00
François-Xavier Deltombe
c1c68209c7 Run status request as PerlResponseHandler, to make it simpler
and remove dependencies to Apache mod_perl 2 (#630)
2014-06-19 16:52:10 +00:00
François-Xavier Deltombe
7fbd4301ef Modularization of server signature enrichment in LL::NG::Handler (#630) 2014-06-19 14:25:19 +00:00
François-Xavier Deltombe
43a6b9d96c Modularization of logs in LL::NG::Handler (#630) 2014-06-19 13:29:01 +00:00
François-Xavier Deltombe
7f8a4acd52 Simplify work done in svn commit r3410 2014-06-17 19:22:36 +00:00
François-Xavier Deltombe
e4b008b56d Reinitialize var $datas before filling it with new user session datas (#710) 2014-06-16 19:45:54 +00:00
David COUTADEUR
12f01ae45d Simplify the handler function and glob (handler_mp2 / handler_mp1)
and the logout function and glob (logout_mp2 / logout_mp1)
Now, there are just 2 functions: handler and logout
2014-06-16 12:12:05 +00:00
David COUTADEUR
f6bc0bd81f - adjusting variable name : webserverCodes -> httpCodes (shorter + more descriptive)
(references #630 and complements r3410)
2014-06-16 09:44:39 +00:00
David COUTADEUR
e657a409c0 deport all module requirements and variables thread sharing in Main and
SharedConf into API specific modules.
 - creation of a thread_share function sharing or not variables (in MP2)
 - move apache module requirements to ApacheMP2
 - move variables thread sharing to ApacheMP2
 - creation of a webserverCodes tag for importing HTTP response codes
(references #630)
2014-06-13 16:12:54 +00:00
François-Xavier Deltombe
7f463bfece Do not lose URL-encoding when redirecting to portal (#630) 2014-06-13 12:14:44 +00:00
David COUTADEUR
5b25f60809 - Fix r3348 and r3335: renaming SpecificHandler into Specific
(references #630 #LEMONLDAP-583)
2014-06-11 14:43:57 +00:00
Clément Oudot
5ecae88dc4 Captcha documentation (#703) 2014-06-11 12:20:23 +00:00
Clément Oudot
525d43ade8 Update captcha parameters in Manager (#703) 2014-06-11 10:46:43 +00:00
Clément Oudot
1b6655a431 Delete captcha session when check is done, and add captcha backend in purgeCentralCache script (#703) 2014-06-11 10:22:34 +00:00
Clément Oudot
473cd6c9dc Use a session backend to manage captcha (#703) 2014-06-10 16:21:33 +00:00
Clément Oudot
eb1da00cb0 Move hidden field outside form-group for better display of captcha field in bootstrap theme (#670) 2014-06-10 12:22:18 +00:00
Clément Oudot
21ba830f8b Close HTML in internal abort page (#LEMONDALP-651) 2014-06-10 10:04:09 +00:00
Clément Oudot
39e416a6ea Configuration of sessions cache in Manager (#671) 2014-06-10 08:59:59 +00:00
François-Xavier Deltombe
af81a5e7d6 Simplify call to LL::NG::Handler::Main::updateStatus (#630) 2014-06-09 17:42:25 +00:00
François-Xavier Deltombe
d60d8ee9a2 Forgot to commit test files for previous revision (#630) 2014-06-09 17:42:02 +00:00
François-Xavier Deltombe
b1b7e1f1bf Define functions in LL::NG::Handler::API::*.pm to manage requests
and call them instead of Apache mod_perl functions (#630)
2014-06-09 17:09:48 +00:00
Clément Oudot
dbfbde2e9f make tidy 2014-06-08 10:04:50 +00:00
Clément Oudot
ea36359463 Update documentation (#695) 2014-06-08 10:00:21 +00:00
Clément Oudot
3cdae47735 Add Digest::SHA dependency (#695) 2014-06-08 09:37:49 +00:00
Clément Oudot
87237108f8 Use SHA256 by default for sessions identifier (#695) 2014-06-08 09:29:53 +00:00
Clément Oudot
4d4689b806 Possibility to use an alternate Generate module for sessions (#695) 2014-06-08 09:20:58 +00:00