Commit Graph

269 Commits

Author SHA1 Message Date
Xavier Guimard
7f7d068646 Don't reload portal if conf is already loaded 2018-06-05 23:13:18 +02:00
Xavier Guimard
66b81ac277 Fix another empty hash (#1439) 2018-06-01 17:15:13 +02:00
Xavier Guimard
eac34d8ff0 Set headers to {} if empty (Fixes: #1439) 2018-06-01 16:37:48 +02:00
Xavier Guimard
d9cb157477 Workaround for #1439 2018-06-01 16:32:23 +02:00
Xavier Guimard
c4c63abc8b Use cached conf if backend fails (Closes: #1429) 2018-05-24 10:25:27 +02:00
Xavier Guimard
c81757152f Set handler in-memory cache to 15s 2018-04-17 16:19:23 +02:00
Xavier Guimard
2feb4a40aa More simple regexp 2018-04-08 22:23:32 +02:00
Xavier Guimard
c39bdd0af0 Error in regexp 2018-04-08 18:27:00 +02:00
Xavier Guimard
3383a68a25 Tidy 2018-03-13 07:14:01 +01:00
davidcoutadeur
b20d68e265 Raise an error in the logs when _utime is not defined in handler (references #1371) 2018-02-26 10:02:21 +01:00
Xavier Guimard
ca399ab539 Menu didn't use resolveAlias() (#1317) 2017-10-24 10:56:21 +00:00
Xavier Guimard
87b41339e5 Wildcard feature in vhost (closes: #1317) 2017-10-23 19:59:43 +00:00
Xavier Guimard
452bb301de Clean #1309 2017-10-04 20:18:01 +00:00
Xavier Guimard
77874022ab Little error in #1309 + use it 2017-10-04 20:16:32 +00:00
Xavier Guimard
a2f411f811 New "require" parameter (fixes: #1309) 2017-10-04 19:57:21 +00:00
Clément Oudot
d0583bb74d Fix jQuery selector code for form replay (#1310) 2017-10-04 12:47:00 +00:00
Xavier Guimard
cad5704357 Clean code 2017-07-17 12:54:22 +00:00
Clément Oudot
b80cc5f871 Refresh after updating session (#1262) 2017-07-11 11:52:46 +00:00
Clément Oudot
5896bfa06a Update activity before checking session expiration (#1262) 2017-07-07 15:14:06 +00:00
Xavier Guimard
54c505342d Repair logout and form-replay (closes: #1044) 2017-03-29 12:12:36 +00:00
Xavier Guimard
86844eab0c Repair logout_app (#1044) 2017-03-29 11:26:04 +00:00
Xavier Guimard
ed823b9e1a Restore headers with Apache (#1044) 2017-03-29 10:01:11 +00:00
Xavier Guimard
ac611fafd0 $vhost may contain port number (#1044) 2017-03-29 06:09:36 +00:00
Xavier Guimard
ef8bd5cccf Typo (#1044) 2017-03-29 05:17:35 +00:00
Xavier Guimard
2e59ea441a Replace request management in handler (#1044)
Note: this is a big change, more tests needed
2017-03-28 21:07:49 +00:00
Xavier Guimard
f1219ab3d1 Move ENV substitution to substitute() (#595) 2017-03-27 20:45:19 +00:00
Xavier Guimard
c761cc5781 Mark some properties "lazy" to be sure conf is intialized (#595) 2017-03-27 16:51:18 +00:00
Xavier Guimard
4af8a59b5e Handler part of reauthentication (#1204) 2017-03-23 18:22:44 +00:00
Xavier Guimard
cdeec00972 Replace "?lmError=" by router path (#595) 2017-03-16 21:33:13 +00:00
Xavier Guimard
a9c36da63d Check if vhostOptions is defined (#1185) 2017-03-06 20:26:22 +00:00
Xavier Guimard
82d39edc42 Verify "mysession" (#970) 2017-03-06 16:43:06 +00:00
Xavier Guimard
553e6e09e1 Import crypto functions in jail (fix: #1187) 2017-03-05 06:41:38 +00:00
Xavier Guimard
96263e0e65 Clean repo 2017-03-03 17:25:03 +00:00
Xavier Guimard
8c4367fd3f Service token in progress (#971) 2017-03-03 06:29:50 +00:00
Xavier Guimard
1c257018ee Add DevOps handler (#1091) 2017-02-22 06:35:19 +00:00
Xavier Guimard
347b67aa98 Prepare token method for #971 2017-02-21 17:39:55 +00:00
Xavier Guimard
c08489a6bc Add Log4perl logger (closes: #1162) 2017-02-21 06:41:50 +00:00
Xavier Guimard
45fd17b56a Force reload at startup (#1160) 2017-02-18 11:31:07 +00:00
Xavier Guimard
ed748080d1 Split CDA (#1067) 2017-02-16 10:42:22 +00:00
Xavier Guimard
deb28bc9cb Replace lmLog by logger-> (#857) 2017-02-15 06:41:50 +00:00
Xavier Guimard
d25f7061ab Transform logger into objects (#1162) 2017-02-13 11:58:39 +00:00
Xavier Guimard
64027a901a Initialize with local conf (#1162) 2017-02-12 20:19:39 +00:00
Xavier Guimard
c5626c77b5 Create logger files (#1162) 2017-02-12 20:09:46 +00:00
Xavier Guimard
40b7535ff3 Reorganize handler (closes: #1160) 2017-02-11 07:47:22 +00:00
Xavier Guimard
cb32fdf526 Form auto post (#1160) 2017-02-09 21:36:23 +00:00
Xavier Guimard
edc713b0ca Enable $ENV{} in rules (#595)
Not that it doesn't make sense except for portal rules
2017-02-09 21:14:12 +00:00
Xavier Guimard
18a51d858a Replace %ENV by $req->env (#1156) 2017-02-09 08:05:55 +00:00
Xavier Guimard
6933d06249 Update logout/status (#1160) 2017-02-09 06:24:12 +00:00
Xavier Guimard
820691df33 Start handler reorganization (#1160) 2017-02-08 22:18:52 +00:00
Xavier Guimard
5299f16f01 Cipher CDA cookie (may fix: #1085) 2017-02-02 14:23:45 +00:00
Xavier Guimard
edba7d11d4 Add vhost in forbidden log (closes: #1144) 2017-01-30 19:29:12 +00:00
Xavier Guimard
9caab59035 Avoid some warnings 2017-01-12 06:05:06 +00:00
Xavier Guimard
3c5cb018ef Compact conf 2017-01-11 21:10:13 +00:00
Xavier Guimard
a09d12031e Some big changes (#595)
Replace uri_escape by WWW::Form::UrlEncoded
Replace PSGI:Request by inheritance from Plack::Request
2017-01-04 16:36:54 +00:00
Xavier Guimard
0c871ecd46 Avoid warning (#LEMONDAP-595) 2016-12-23 16:03:33 +00:00
Xavier Guimard
3d23dc272d CAS in progress (#595) 2016-12-22 22:06:13 +00:00
Xavier Guimard
ad6b42e9f1 Propage portal logout to handler (#595) 2016-12-22 20:18:58 +00:00
Xavier Guimard
691d076000 Enclose header expressions (#1122) 2016-12-20 09:38:49 +00:00
Clément Oudot
33141e17f9 Clean cached data if session is expired (#1102) 2016-11-23 16:13:44 +00:00
Clément Oudot
31cfbf8101 Apply CDA change to trunk (#173) 2016-11-15 13:33:39 +00:00
Xavier Guimard
4bd223eab3 Finish Apache2 AuthBasic (#595) 2016-10-13 19:42:34 +00:00
Clément Oudot
7b4e3e4904 Port timeoutActivityInterval to trunk (#1001) 2016-09-12 09:49:40 +00:00
Xavier Guimard
c7ad953184 #1044 in progress 2016-08-03 08:11:04 +00:00
Xavier Guimard
5ba4399c28 #1044 in progress 2016-08-03 08:02:22 +00:00
Xavier Guimard
fd25a76cbe #1044 in progress 2016-08-03 07:31:36 +00:00
Xavier Guimard
21d3efcc87 #1044 in progress 2016-08-02 13:52:29 +00:00
Xavier Guimard
469622fe97 Pass to closures (#1044) 2016-07-30 20:48:03 +00:00
Xavier Guimard
bf1fd28aff Backport #1036 2016-06-09 11:45:10 +00:00
Xavier Guimard
fa45062be5 Display errors in HTML (#595) 2016-05-24 20:50:22 +00:00
Xavier Guimard
bb39433ad5 Avoid some warnings (#595) 2016-05-23 19:28:32 +00:00
Xavier Guimard
159eb4a6ce Enable logout (#LEMONDAP-595) 2016-05-22 17:06:55 +00:00
Xavier Guimard
39c6713aea Tidy 2016-04-29 07:27:26 +00:00
Xavier Guimard
a4892485b3 Finalize #1002 backport 2016-04-28 05:59:34 +00:00
Xavier Guimard
beabc6b979 Finalize #1002 2016-04-28 05:52:46 +00:00
Clément Oudot
400785deed Add sent headers in debug log (#1002) 2016-04-27 09:46:33 +00:00
Xavier Guimard
35fbaefbe3 MP constant no more exists (#595) 2016-04-27 06:20:32 +00:00
Xavier Guimard
cf12cccd2f Backport #994 fix 2016-04-25 07:39:58 +00:00
Xavier Guimard
014c5d5d71 #994 2016-04-21 20:19:22 +00:00
Xavier Guimard
24d536b7d1 Menu in progress (#595) 2016-04-13 21:06:04 +00:00
Xavier Guimard
3290e2bdb9 Change substitution in safe jail (#960) 2016-04-05 20:46:09 +00:00
Xavier Guimard
ca84a928db "onReload" system: handler reload calls portal reload (#595) 2016-04-04 21:22:25 +00:00
Xavier Guimard
4fe318a5ea Authentication succeeds (#595) 2016-04-04 20:39:22 +00:00
Xavier Guimard
1a16c2dbc8 First running test (#595) 2016-04-03 16:27:13 +00:00
Xavier Guimard
e23f0a3e2d Missing merge 2016-03-24 21:11:04 +00:00
Xavier Guimard
a5424c6068 Add import param to keep conf in handler 2016-03-24 06:23:38 +00:00
Xavier Guimard
fe842d59c9 Replace bad variable name 2016-03-24 06:23:37 +00:00
Xavier Guimard
5a04d1ff61 Import encrypt in header functions (closes: #983) 2016-03-23 12:55:09 +00:00
Xavier Guimard
2d2edb61ac Merge experimental branch (#960)
Also update version to 2.0
2016-03-17 22:19:44 +00:00
Xavier Guimard
8357b79684 Activate maintenance mode if reval fails (closes: #973) 2016-03-08 15:03:55 +00:00
Xavier Guimard
7ac07074ae Update versions 2016-03-03 20:25:16 +00:00
Xavier Guimard
1584b3bcc4 Fix chmod 2016-03-03 20:25:12 +00:00
Xavier Guimard
91228b5767 Enable custom functions with safe jail (closes: #956) 2016-02-28 11:51:37 +00:00
Xavier Guimard
e8dac0fe6b Replace 'splice' by copy (Closes: #534) 2016-01-02 09:29:05 +00:00
Xavier Guimard
0d42b85e7d Avoid 'Unescaped left brace in regex is deprecated' warning 2015-12-26 10:49:15 +00:00
Xavier Guimard
3e2322fe3a Import and adapt https://github.com/guimard/angular-lemonldap-ng-manager.git 2015-05-14 06:44:38 +00:00
Clément Oudot
7a7bb1fbda make tidy on all files 2015-03-10 15:07:33 +00:00
Clément Oudot
f97f5c72e0 make tidy 2014-07-24 15:48:32 +00:00
François-Xavier Deltombe
9fbe43548e Handler: Post Replay refactored (#630) 2014-07-07 18:30:42 +00:00
François-Xavier Deltombe
aa1c7357fe Handler Jail: attribute "safe" renamed into "jail" (#729) 2014-07-07 09:54:13 +00:00
François-Xavier Deltombe
b903597b76 Handler: Ensure that new jail is consistent with its attributes (#729) 2014-07-07 09:36:54 +00:00
François-Xavier Deltombe
02a0fffb87 Handler: Add functions in jail to get request data (#633) 2014-07-04 08:36:38 +00:00
François-Xavier Deltombe
588d438879 Handler: adjust few things about logs and loglevel (#630) 2014-07-03 15:20:20 +00:00
François-Xavier Deltombe
8920533794 Handler: Add a param "logLevel" to control LL::NG logs for CGIs (#630) 2014-07-03 14:08:08 +00:00
François-Xavier Deltombe
628d7e393f Handler: set current request as LL::NG::Handler::API variable,
instead of as a function parameter (#630)
2014-07-01 12:58:04 +00:00
François-Xavier Deltombe
056d6cacf2 Handler: Move remaining functions of Main::Headers into Main (#630) 2014-07-01 09:54:09 +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
43a6b9d96c Modularization of logs in LL::NG::Handler (#630) 2014-06-19 13:29:01 +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
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
François-Xavier Deltombe
9d6a40e4de Define functions to manage HTTP headers in LL::NG::Handler::API::*.pm 2014-05-23 15:21:10 +00:00
François-Xavier Deltombe
b83ca9d9b2 pass $apacheRequest object to functions in parameters
instead of as a global var (#630)
2014-05-23 10:23:51 +00:00
François-Xavier Deltombe
d41028ddfd pass $apacheRequest object to POST form transform fonctions
in parameters instead of as a global var (#630)
2014-05-22 14:15:50 +00:00
François-Xavier Deltombe
dcabb537d6 LL::NG::Handler: move $ntsv vars (except $ntsv->{datasUpdate})
into $tsv, since they can be thread shared (#630)
2014-05-22 12:21:28 +00:00
David COUTADEUR
59f0b9e5d4 - correction of a hook in the Logger, which made this module incompatible with perl 5.10.5 / debian squeeze
(affectations and substitutions are now expanded to multiple lines)

(references #630)
2014-03-31 21:07:06 +00:00
David COUTADEUR
2408e9e4af - fix commit 3268: the jail_reval function must handle more cases
(references #630)
2014-03-17 14:38:22 +00:00
David COUTADEUR
262fdaef2c - simplification of jail_reval call (references #630) 2014-03-17 12:58:49 +00:00
David COUTADEUR
b3d05721a8 - Merging branch lemonldap-ng-experimental/Handler-Mouse with with trunk
code impacted:
* lemonldap-ng-handler/*: handler code,
* lemonldap-ng-handler/example/*.pm: handler aliases to libraries,
* _example/etc/*.conf: virtual host templates
(references #630, #LEMONLDAP-386)

(second part of incomplete r3251 commit)
2014-03-13 15:07:36 +00:00