Commit Graph

965 Commits

Author SHA1 Message Date
Xavier Bachelot
6d10f1f8f2 Remove duplicate use 2018-11-20 10:49:57 +01:00
Xavier Bachelot
301b0d40eb Add missing use 2018-11-19 17:21:07 +01:00
Clément OUDOT
8e9528ca26 Fix Handler CDA (#1544) 2018-11-15 15:17:07 +01:00
Christophe Maudoux
c3ee16ec28 Append handler internal cache timeout parameter (#1535) 2018-11-09 21:35:51 +01:00
Christophe Maudoux
4ec3df028d Typo 2018-10-26 20:55:31 +02:00
Christophe Maudoux
121356dcad Fix unit test warning (#1509) 2018-10-23 23:04:35 +02:00
Christophe Maudoux
aaaa8f54f5 Append debug messages & Fix issue (#1509) 2018-10-23 21:35:44 +02:00
Christophe Maudoux
67e9dc23b1 Fix mistake 2018-10-23 20:27:55 +02:00
Christophe Maudoux
8ba4d112cc Append debug messages (#1509) 2018-10-22 22:40:20 +02:00
Christophe Maudoux
14391d07d1 Append debug messages (#1509) 2018-10-22 22:28:37 +02:00
Clément OUDOT
c5f9a7f95b make tidy 2018-10-12 10:04:03 +02:00
Xavier Guimard
69737ab276 Fix bug introduced in commit 1c382ff (#1514) 2018-10-08 15:54:38 +02:00
Christophe Maudoux
6ae0035fbb Append PE code 2018-10-07 22:39:03 +02:00
Christophe Maudoux
a4b3984374 Remove Perl version directive 2018-10-07 22:38:40 +02:00
Clément OUDOT
1c382ff263 Resolve alias when building redirect URL (#1514) 2018-10-05 11:03:58 +02:00
Xavier Guimard
841c5ba504 Improve Debian autopkgtest tests 2018-09-05 22:24:23 +02:00
Xavier Guimard
7143d82ebf Improve ^ 2018-09-04 17:50:41 +02:00
Xavier Guimard
6133a7175b Add $env macro also in all rules 2018-09-04 16:03:53 +02:00
Xavier Guimard
62d5c7836c make tidy 2018-09-02 17:31:58 +02:00
Christophe Maudoux
8fc2ced862 Fix comments 2018-08-13 14:00:21 +02:00
Xavier Guimard
1da367576e Reinitialize choice when module failed (#1461) 2018-07-06 16:07:25 +02:00
Xavier Guimard
0f7b3ca71d make tidy 2018-07-05 23:00:40 +02:00
Xavier Guimard
b2620c2679 s/datas/data
datas => des données
data => les données
2018-07-05 22:56:16 +02:00
Christophe Maudoux
f767c63013 Fix log msg 2018-07-04 22:49:51 +02:00
Xavier Guimard
4ebcae3e15 Tidy 2018-06-21 21:35:16 +02:00
Xavier Guimard
f5971ad98d Set configuration checkTime (#1454) 2018-06-15 19:00:14 +02:00
Xavier Guimard
a7329c1dcc Verify Mouse version with Apache (#1452) 2018-06-14 06:19:27 +02:00
Xavier Guimard
5bfdeb6b43 Comment (#1452) 2018-06-13 23:20:35 +02:00
Xavier Guimard
f4b3e43a2c Workaround for ModPerl/Mouse bug (#1452) 2018-06-13 23:10:40 +02:00
Xavier Guimard
e67d51156a Little security (#1448) 2018-06-13 06:15:57 +02:00
Xavier Guimard
64fab47ef3 Use localhost instead of 127.0.0.1 (#1448) 2018-06-12 22:35:07 +02:00
Xavier Guimard
7c105e2db6 Fix status for Apache (closes: #1448) 2018-06-12 21:00:10 +02:00
Xavier Guimard
e1f39c4adf Some cleans (#1448) 2018-06-12 14:25:38 +02:00
Xavier Guimard
ecf33106ea Downgrade debug mesage (#1448) 2018-06-12 14:02:32 +02:00
Xavier Guimard
33e20b55f5 Prepare UDP out for status (#1448) 2018-06-12 12:17:17 +02:00
Xavier Guimard
1a9ec21d00 Use IO::Handle methods (#1148) 2018-06-12 11:45:21 +02:00
Xavier Guimard
56dd0610fa Use IO::Select for handler status (#1448) 2018-06-12 06:49:04 +02:00
Xavier Guimard
019f1e75e8 Uniq status daemon for Nginx (#595)
NB: not uniq for Apache for now
2018-06-11 22:11:18 +02:00
Xavier Guimard
8d7593d1f1 Fix SecureToken to be able to use it with other servers (#595) 2018-06-09 22:36:50 +02:00
Xavier Guimard
6dc0f59109 DebOpsST handler (#1091 and #971) 2018-06-07 19:53:13 +02:00
Xavier Guimard
ca68168064 DebOpsST handler (#1091 and #971) 2018-06-07 19:51:48 +02:00
Xavier Guimard
7f7d068646 Don't reload portal if conf is already loaded 2018-06-05 23:13:18 +02:00
Xavier Guimard
19bd3a8597 Fix error in inheritance path (#1440) 2018-06-01 17:22:27 +02:00
Xavier Guimard
7b2a98d7f3 Fix inheritance path (#1440) 2018-06-01 17:20:34 +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
c1e4c6a6f0 Fix error in CDA (#1440) 2018-06-01 16:16:57 +02:00
Xavier Guimard
c4c63abc8b Use cached conf if backend fails (Closes: #1429) 2018-05-24 10:25:27 +02:00
Xavier Guimard
e90b3c34b0 Set also Lm-Remote-User header during auth process (#595) 2018-05-22 12:37:05 +02:00
Xavier Guimard
2a3d3d73b5 Avoid double Lm-* headers (#595) 2018-05-22 12:22:52 +02:00
Xavier Guimard
392c8fb709 Add RULES_URL (#1427) 2018-05-20 15:32:10 +02:00
Xavier Guimard
77fc8e4fbf Add VHOSTTYPE (#1427) 2018-05-20 15:27:33 +02:00
Xavier Guimard
ab8588d434 FastCGI-Client for Apache2 (#1427) 2018-05-20 14:40:33 +02:00
Xavier Guimard
af90fe3514 FastCGI-Client for Apache2 (#1427) 2018-05-20 09:17:06 +02:00
Xavier Guimard
722e404dcc Add RULES_URL FCGI parameter (#1091) 2018-05-08 10:04:08 +02:00
Xavier Guimard
273e84b342 Clean some Dumper usage (#1416) 2018-05-07 17:17:55 +02:00
Xavier Guimard
109ceab452 Some comments 2018-04-22 16:08:34 +02:00
Xavier Guimard
c81757152f Set handler in-memory cache to 15s 2018-04-17 16:19:23 +02:00
Xavier Guimard
e97a546433 Add "Null" logger (#857) 2018-04-17 06:56:29 +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
afab5536f2 Update manifests 2018-04-05 22:37:29 +02:00
Xavier Guimard
770a888cea Update metadata 2018-04-05 22:27:51 +02:00
Xavier Guimard
244bd617ac Update Makefile.PL 2018-03-28 09:09:47 +02:00
Xavier Guimard
c32e962ea9 Rearrange uWSGI files 2018-03-25 14:54:32 +02:00
Xavier Guimard
2d1795ccc6 Remove old files 2018-03-25 12:51:04 +02:00
Xavier Guimard
ca8a14a17f Rename example dir 2018-03-25 12:19:23 +02:00
Xavier Guimard
3499b07a6b Add high-perf-handler-app example 2018-03-21 17:35:56 +01:00
Xavier Guimard
9725a63396 More security options in TOTP (#1359) 2018-03-18 14:26:45 +01:00
Xavier Guimard
e4b995f6a9 Spelling errors 2018-03-15 21:20:03 +01:00
Xavier Guimard
9cb44cc6c3 Manage headers (Closes: #1397) 2018-03-15 12:57:23 +01:00
Xavier Guimard
be932081ef Update POD (#1397) 2018-03-15 12:47:19 +01:00
Xavier Guimard
eee9f60fcf Update manifests 2018-03-15 12:44:45 +01:00
Xavier Guimard
1b7e9c91b7 Update POD (#1397) 2018-03-15 12:43:40 +01:00
Xavier Guimard
664a933144 Provide Plack servers support
Fixes: #1397
2018-03-15 12:39:07 +01: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
Mathieu Parent
e4ca6bbf92 Use global configuration too in purgeLocalCache
Fixes #1281
2017-12-07 16:08:54 +01:00
Xavier Guimard
b3ff6e2666 Clean shellbangs (Debian 4.1.2 policy compliance) 2017-12-01 06:42:02 +01:00
Xavier Guimard
7f0ff6d0d8 Replace Jira by GitLab 2017-11-11 14:06:23 +01:00
Xavier Guimard
6da0f69b27 Fix #1323 2017-10-30 20:24:59 +00:00
Xavier Guimard
f567d169f2 Update manifest 2017-10-27 13:11:24 +00: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
5dcbc46cbb Update manifest 2017-10-10 06:50:13 +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
Clément Oudot
a7401b72f6 Fix from_json methods (#1303) 2017-09-28 12:52:14 +00:00
Clément Oudot
51dca7b04b Remove old Handler CGI example 2017-09-19 09:10:22 +00:00
Xavier Guimard
c62e9abee6 Missing "reload" sub-call (Closes: #1280) 2017-08-25 09:38:41 +00:00
Xavier Guimard
4a97c1617c Fix Nginx error on reload (Closes: #1269) 2017-08-18 13:07:59 +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
2400f84cb9 Prepare 2.0.0~alpha1 release 2017-07-10 10:01:40 +00:00
Clément Oudot
dd87683a4c Prepare 2.0.0-alpha1 release 2017-07-10 09:11:34 +00:00
Clément Oudot
5896bfa06a Update activity before checking session expiration (#1262) 2017-07-07 15:14:06 +00:00
David COUTADEUR
80f5d06e82 perl tidy 2017-06-23 09:57:07 +00:00
Xavier Guimard
2580a21f7a Remove old UA exported var (#1044) 2017-03-31 16:15:38 +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
e3208fec4f Syntax error (#1044) 2017-03-29 10:38:10 +00:00
Xavier Guimard
41e43e9b47 Avoid rewriting HTTP_HOST (#1044) 2017-03-29 10:26:39 +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
47688fb729 Typo (#1044) 2017-03-29 05:02:56 +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
0aad2329c9 Missing sub (#1160) 2017-03-27 21:02:57 +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
6a651b5bee Try to implement SAML reauth (#595) 2017-03-23 20:49:52 +00:00
Xavier Guimard
4af8a59b5e Handler part of reauthentication (#1204) 2017-03-23 18:22:44 +00:00
Xavier Guimard
62528e8b6a Add SAML-SP rule (#1161) 2017-03-22 20:20:30 +00:00
Xavier Guimard
a45c22ba8a Typo 2017-03-21 21:42:56 +00:00
Xavier Guimard
ca2e9be0e5 Rename _loginHistory (#1169) 2017-03-21 21:00:37 +00:00
Xavier Guimard
99ddfbfe25 Rename _startTime and _updateTime (#1169) 2017-03-21 20:52:40 +00:00
Xavier Guimard
cdeec00972 Replace "?lmError=" by router path (#595) 2017-03-16 21:33:13 +00:00
Xavier Guimard
a26d0a52c0 Remove bad dependency (#1160) 2017-03-13 15:46:27 +00:00
Xavier Guimard
d7340203a5 Manage internal dependency versions 2017-03-07 10:03:29 +00:00
Xavier Guimard
decbc18760 Update manifest 2017-03-07 10:03:26 +00:00
Xavier Guimard
21856ea330 Update dependecies (#595) 2017-03-07 10:03:23 +00:00
Xavier Guimard
56337e602e Remove some dependencies (#595) 2017-03-07 06:30:57 +00:00
Xavier Guimard
6344051c75 Update some versions 2017-03-07 06:05:08 +00:00
Xavier Guimard
fa42d390d0 Update minimum version in deps 2017-03-07 06:05:06 +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
bd68e07f42 Add #971 doc 2017-03-04 14:38:41 +00:00
Xavier Guimard
e681f31079 Simple token system as discuss in #971 2017-03-04 12:24:56 +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
e2f4de3f9d Missing versions (#595) 2017-02-28 20:53:19 +00:00
Xavier Guimard
b0f0e1004b Replace SOAP by REST for AuthBasic (#970) 2017-02-28 09:49:37 +00:00
Xavier Guimard
720e2b472c Replace SOAP by REST for AuthBasic (#970) 2017-02-28 06:34:54 +00:00
Xavier Guimard
597e4c7c68 Refuse to use DevOps when useSafeJail=0 (#1091) 2017-02-22 22:16:43 +00:00
Xavier Guimard
9ea94e9f07 DevOps tested (closes: #1091) 2017-02-22 12:30:31 +00:00
Xavier Guimard
943ad7f156 DevOps in progress (#1091) 2017-02-22 08:12:55 +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
d13d87d68d Force standard logger (#1162) 2017-02-21 11:11:23 +00:00
Xavier Guimard
104ca36361 Force standard logger (#1162) 2017-02-21 11:08:45 +00:00
Xavier Guimard
c08489a6bc Add Log4perl logger (closes: #1162) 2017-02-21 06:41:50 +00:00
Xavier Guimard
ede8f56ef3 Tidy 2017-02-19 11:51:58 +00:00
Xavier Guimard
a70842603a Update portal status (#595) 2017-02-18 14:25:51 +00:00
Xavier Guimard
45fd17b56a Force reload at startup (#1160) 2017-02-18 11:31:07 +00:00
Xavier Guimard
64970971a7 Bad initialization for status cache 2017-02-16 19:18:57 +00:00
Xavier Guimard
aaa9e80472 Updates (#1067) 2017-02-16 11:08:18 +00:00
Xavier Guimard
511264db84 Missing files (#1067) 2017-02-16 11:08:15 +00:00
Xavier Guimard
ed748080d1 Split CDA (#1067) 2017-02-16 10:42:22 +00:00
Xavier Guimard
a2917ffc93 More doc (#595) 2017-02-16 07:37:40 +00:00
Xavier Guimard
deb28bc9cb Replace lmLog by logger-> (#857) 2017-02-15 06:41:50 +00:00
Xavier Guimard
b7d4dac6ea Typo (#1162) 2017-02-15 06:41:44 +00:00
Xavier Guimard
b31635c62b Force syslog when FastCGI in use (#1162) 2017-02-15 06:41:41 +00:00
Xavier Guimard
88dd1201ef Remove local-only parameters (#1160) 2017-02-13 16:48:39 +00:00
Xavier Guimard
d25f7061ab Transform logger into objects (#1162) 2017-02-13 11:58:39 +00:00
Xavier Guimard
cf1b164058 Avoid calling init without valid lemonldap-ng.ini (#1162) 2017-02-12 20:26:36 +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
6b9481aa47 Define handler type in webserver conf (#1160) 2017-02-11 16:19:25 +00:00
Xavier Guimard
40b7535ff3 Reorganize handler (closes: #1160) 2017-02-11 07:47:22 +00:00
Xavier Guimard
e7cb171f02 Don't use accessor to avoid jail failing (#1160) 2017-02-10 12:52:25 +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
a04f5acd1d U2F is ready for skin bootstrap (#1148) 2017-02-07 22:04:49 +00:00
Xavier Guimard
9e12c94234 Remove old CGI files (#595) 2017-02-05 12:30:50 +00:00
Xavier Guimard
6040f03671 Update manifests 2017-02-04 19:46:29 +00:00
Xavier Guimard
e8fec72141 Remove old file 2017-02-03 17:14:11 +00:00
Xavier Guimard
a6824c79b5 Update status code (#595) 2017-02-03 17:14:09 +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
4ae5c7463c Replace .pl (#595) 2017-01-30 16:22:39 +00:00
Xavier Guimard
1e4c6da389 Rename lmConf-*.js to lmConf-*.json (fix: #1090) 2017-01-27 11:58:46 +00:00
Xavier Guimard
f7cc7b2b66 More debug (#595) 2017-01-14 08:17:42 +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
d0350660e7 More security for path 2017-01-10 06:04:38 +00:00
Xavier Guimard
1983842f79 SOAP server (#970) 2017-01-07 20:37:07 +00:00
Xavier Guimard
8856c35fb2 Prepare REST server (#970) 2017-01-06 09:04:00 +00:00
Xavier Guimard
f1573c5fe2 Update POD (#595) 2017-01-04 20:31:36 +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
c14bd95d92 Import some 1.9.7 changes 2016-12-29 06:25:07 +00:00
Xavier Guimard
0da228ff35 make tidy 2016-12-26 09:23:35 +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
Xavier Guimard
909391ffc7 Spelling errors 2016-12-19 20:47:44 +00:00
Xavier Guimard
8e2418ceb8 More clean response 2016-12-16 16:21:20 +00:00
Xavier Guimard
d71c38c510 Update META.yml 2016-12-01 19:43:17 +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
46e7e36070 SAML test skeleton 2016-11-14 21:45:32 +00:00
Xavier Guimard
9fcbf8ed9a Import autopkgtests (#1110) 2016-11-12 08:24:52 +00:00
Xavier Guimard
789aa82d16 Add reload method (closes: #1099) 2016-10-25 20:38:29 +00:00
Xavier Guimard
4bd223eab3 Finish Apache2 AuthBasic (#595) 2016-10-13 19:42:34 +00:00
Xavier Guimard
fabef44f72 Typo (#1067) 2016-10-04 19:45:58 +00:00
Xavier Guimard
a880f22c57 Working on Handler::AuthBasic 2016-09-30 05:15:17 +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
283832dab0 Typo 2016-07-25 09:49:55 +00:00
Clément Oudot
b4cd5eecd1 Update MANIFEST 2016-07-08 14:34:12 +00:00
Xavier Guimard
6d4b8c436b Clean t/ 2016-06-12 16:52:34 +00:00
Xavier Guimard
1cf2d8fd5c Backport #1040 2016-06-10 11:08:09 +00:00
Xavier Guimard
bf1fd28aff Backport #1036 2016-06-09 11:45:10 +00:00
Xavier Guimard
04846adaa5 Don't fail on zero configuration (Closes: #1030) 2016-05-31 05:27:58 +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
f0193ef167 Don't use local session cache for tests 2016-04-14 11:15:51 +00:00
Xavier Guimard
24d536b7d1 Menu in progress (#595) 2016-04-13 21:06:04 +00:00
Xavier Guimard
132de79b58 Merge 1.9.1 changes 2016-04-10 21:29:59 +00:00
Xavier Guimard
3290e2bdb9 Change substitution in safe jail (#960) 2016-04-05 20:46:09 +00:00
Xavier Guimard
dc8ac8030c autoRedirect works (#595)
but macros() doesn't
2016-04-05 11:12:53 +00:00
Xavier Guimard
b6f2946c22 Finish "onReload" call (#595) 2016-04-04 21:22:27 +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
33569f8c8c Little bugs (#595) 2016-04-04 08:39:26 +00:00
Xavier Guimard
1a16c2dbc8 First running test (#595) 2016-04-03 16:27:13 +00:00
Xavier Guimard
ed0451cbae Typo 2016-03-25 11:32:20 +00:00
Xavier Guimard
045f609cb4 Replace old shared variables 2016-03-24 21:41:59 +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
fa0ae39f8a Add special handler to be used by PSGI portal (#595) 2016-03-23 21:55:47 +00:00
Xavier Guimard
5a04d1ff61 Import encrypt in header functions (closes: #983) 2016-03-23 12:55:09 +00:00
Xavier Guimard
39524dda2a Update manifest 2016-03-20 09:07:26 +00:00
Xavier Guimard
2d2edb61ac Merge experimental branch (#960)
Also update version to 2.0
2016-03-17 22:19:44 +00:00
Clément Oudot
d7ca34a2f2 Update version in META.yml (#978) 2016-03-15 16:58:13 +00:00
Xavier Guimard
0eedd486e8 Revert "Bad Apache call"
This reverts commit 7663fca5def862f7d2ebae034cfebed1b6e2f515.
2016-03-14 18:56:31 +00:00
Xavier Guimard
756a580d1d Bad Apache call 2016-03-14 18:42:03 +00:00
Xavier Guimard
d6a4461416 Better regexp (#976) 2016-03-13 12:42:58 +00:00
Xavier Guimard
6a263b4296 Don't interpolate (closes: #976) 2016-03-10 20:27:43 +00:00
Xavier Guimard
37f163dc5e Improve rules check (#973) 2016-03-08 18:00:10 +00:00
Xavier Guimard
8357b79684 Activate maintenance mode if reval fails (closes: #973) 2016-03-08 15:03:55 +00:00
Xavier Guimard
ef48301771 Spelling errors 2016-03-05 08:42:06 +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
e51c39cfea Enable custom functions with FastCGI server (#583) 2016-02-28 11:51:40 +00:00
Xavier Guimard
91228b5767 Enable custom functions with safe jail (closes: #956) 2016-02-28 11:51:37 +00:00
Xavier Guimard
f5b121f5d5 Remove old UpdateCookie.pm (#630) 2016-02-27 17:47:45 +00:00
Xavier Guimard
4fbdd9b15f Remove old Proxy.pm (#630) 2016-02-27 17:46:21 +00:00
Xavier Guimard
c085cd23d8 Remove old Sympa auto-login 2016-02-27 08:04:22 +00:00
Xavier Guimard
43accac06e Warn if filter features are used with FastCGI 2016-02-27 06:52:05 +00:00
Clément Oudot
df9e6519e0 Adapt SecureToken Handler code (#630) 2016-02-26 17:39:08 +00:00
Clément Oudot
4359716171 Adapt AuthBasic Handler code (#630) 2016-02-26 17:39:06 +00:00
Clément Oudot
38fd00b9ce Adapt Zimbra Handler to new Handler API (#943) 2016-02-26 13:23:15 +00:00
Clément Oudot
1c758efa33 Update inline doc in Handler::Main (#630) 2016-02-26 11:17:35 +00:00
Xavier Guimard
2b1ab0eea7 Set headers also for auth users 2016-02-25 08:12:00 +00:00
Xavier Guimard
169f2feafd Another stupid hook due to this fucking API.pm (May close #943) 2016-02-25 07:26:31 +00:00
Xavier Guimard
7dd6b2b741 Another bad hook for API.pm (closes: #945, #LEMONLDAP-897) 2016-02-25 07:15:12 +00:00
Clément Oudot
73f2da267c Do not force Handler::Menu height (#898) 2016-02-19 13:40:04 +00:00
Xavier Guimard
dfce1419ad Good length for utf8 characters (may close #733) 2016-02-19 09:41:12 +00:00
Xavier Guimard
122dfad051 Typo (Closes: #941) 2016-02-19 08:50:38 +00:00
Xavier Guimard
f338000e97 Change Ajax redirections (#820)
- redirections back to llApp.js
- portal is now a template param
- portal is now more downloaded at startup

Tests successful
2016-02-19 06:31:09 +00:00
Xavier Guimard
f5856422e0 Fix form replay errors (closes: #630) 2016-02-18 06:38:13 +00:00
Xavier Guimard
aab84b0d6f make tidy 2016-02-17 10:12:19 +00:00
Xavier Guimard
7de28b3912 Avoid some warnings 2016-02-17 10:07:24 +00:00
Xavier Guimard
857ec88efc Fix some warnings 2016-02-17 10:07:08 +00:00
Xavier Guimard
08408218fa Avoid launching 2 status (closes: #934) 2016-02-17 09:07:01 +00:00
Xavier Guimard
63337070ec Avoid some little warnings 2016-02-17 09:06:54 +00:00
Xavier Guimard
9a828abfbb Insert handler sub to activate menu even is run() is omitted (#898) 2016-02-17 06:18:23 +00:00
Xavier Guimard
deeead1a7e Launch init() in tests 2016-02-16 16:01:45 +00:00
Xavier Guimard
3f1d4b69bc Join variables 2016-02-15 21:12:56 +00:00
Xavier Guimard
174651d9ae Buffer potential problem (may close #733) 2016-02-15 17:31:26 +00:00
Xavier Guimard
2876a85288 Adapt handler menu to use $tsv (Closes: #898) 2016-02-14 08:13:56 +00:00
Xavier Guimard
f98a466ee9 Status for Nginx (#Closes: #934) 2016-02-14 07:48:41 +00:00
Xavier Guimard
0035463294 Missing var substitution (#733) 2016-02-14 07:13:05 +00:00
Xavier Guimard
8d0f4caadf Add missing 2016-02-13 18:21:09 +00:00
Xavier Guimard
225521a416 New post management in handler (#733) 2016-02-13 18:21:03 +00:00
Xavier Guimard
8c1bd8efeb Avoid using each(): it tries to delete key 2016-02-13 10:06:48 +00:00
Xavier Guimard
3b083ee9a1 Status for Nginx (#934) 2016-02-11 12:09:53 +00:00
Xavier Guimard
bb1f00cd77 Restore status (closes: #897) 2016-02-11 10:58:53 +00:00
Xavier Guimard
e0f6abd064 Bad API detection order (#897) 2016-02-11 10:58:49 +00:00
Xavier Guimard
0f8fe7894f Rename router() to handler() in PSGI (#820) 2016-02-11 06:00:35 +00:00
Xavier Guimard
2e8123ab57 Restore status (#897):
- Use PerlModule instead of PerlRequire (used after Apache fork)
- Initialize handler API for status
2016-02-10 21:45:07 +00:00
Xavier Guimard
2dc1750ce7 Access control has been broken in r4353 2016-02-09 22:17:39 +00:00
Xavier Guimard
9097135ecd Spelling errors 2016-02-06 18:41:21 +00:00
Xavier Guimard
f35de3ffd2 Hide cookie for Nginx (#583) 2016-02-03 06:43:11 +00:00
Xavier Guimard
268bcb6a6c Headers support for LUA or not (#583) 2016-02-02 22:19:32 +00:00
Xavier Guimard
0e11cf3ed3 Full tests for Nginx handler (#583) 2016-02-01 22:22:33 +00:00
Xavier Guimard
ff61b49fd9 Full PSGI test 2016-02-01 20:10:28 +00:00
Xavier Guimard
189e560900 Nginx in progress... (#583) 2016-02-01 19:05:14 +00:00
Xavier Guimard
56f9c128d3 Update manifest 2016-02-01 12:16:12 +00:00
Xavier Guimard
feee76e5bd PSGI tests in progress... (#583) 2016-02-01 12:15:27 +00:00
Xavier Guimard
8aa41789a9 Skeleton for PSGI handler tests 2016-02-01 11:11:31 +00:00
Xavier Guimard
c01a84fadd Move noAjaxHook in portal redirections 2016-02-01 10:18:37 +00:00
Xavier Guimard
4498c15008 Some bugs in previous commit 2016-02-01 09:59:07 +00:00
Xavier Guimard
346111f2e5 Nginx in progress: now handler provides uid in logs (#583) 2016-01-31 22:53:23 +00:00
Xavier Guimard
aa34a28bd3 Rearrange Nginx files 2016-01-30 12:26:14 +00:00
Xavier Guimard
4d53c03b42 Nginx... 2016-01-29 11:09:58 +00:00
Xavier Guimard
40366bfed2 Enhance PSGI detection 2016-01-29 11:09:55 +00:00
Xavier Guimard
a61ef89228 Avoid object conflict 2016-01-29 11:09:51 +00:00
Xavier Guimard
b6f7b2a96a Move Ajax hook from handler to portal (Closes: #790) 2016-01-28 22:25:46 +00:00
Xavier Guimard
4f3a42ba48 Manage Ajax requests redirection with 401 (new parameter noAjaxHook) 2016-01-28 06:43:46 +00:00
Xavier Guimard
0e51658c6f Use WWW-Authenticate header in 401 responses 2016-01-28 06:43:43 +00:00
Xavier Guimard
154107fffa Avoid requiring more than 1 time + object call 2016-01-27 21:33:03 +00:00
Xavier Guimard
450369d9de Split PSGI app 2016-01-26 06:14:54 +00:00
Xavier Guimard
f2ca23f30c Handler PSGI server skeleton (for nginx) 2016-01-25 18:03:48 +00:00
Xavier Guimard
2568201eca Split Handler::PSGI in 2 : classic and router 2016-01-25 18:03:46 +00:00
Xavier Guimard
28d1450760 Chain init() instead of using 'around' 2016-01-25 05:54:55 +00:00
Xavier Guimard
0bcc83c2c2 More logs 2016-01-22 12:32:14 +00:00
Xavier Guimard
5bef7284b3 Update copyright years 2016-01-21 21:15:19 +00:00
Xavier Guimard
ee5b1351e1 Update lmConf (missing required attributes) 2016-01-12 22:04:08 +00:00
Xavier Guimard
773ccfe718 Avoid some warnings 2016-01-12 21:00:09 +00:00
Xavier Guimard
6399846bee More readable error 2016-01-05 18:27:16 +00:00
Xavier Guimard
f21ab98e8e Better error management (0 conf) 2016-01-05 12:33:27 +00:00
Xavier Guimard
3868343e12 Avoid die when no conf is available 2016-01-05 11:06:13 +00:00
Clément Oudot
961e273d43 Fix 'Use of uninitialized value :: in concatenation (.) or string at /root/lemonldap-trunk/lemonldap-ng-handler/blib/lib/Lemonldap/NG/Handler/API.pm line 58' error on Debian Wheezy 2016-01-05 11:04:18 +00:00
Xavier Guimard
e8dac0fe6b Replace 'splice' by copy (Closes: #534) 2016-01-02 09:29:05 +00:00
Xavier Guimard
1409fb8cfd Update conf during startup
Closes: #395
2015-12-27 12:51:49 +00:00
Xavier Guimard
e252b719c2 Typo 2015-12-27 09:16:04 +00:00
Xavier Guimard
0036ad31cb Manage HTTP errors in FCGI (redirections) 2015-12-27 08:31:41 +00:00
Xavier Guimard
0d42b85e7d Avoid 'Unescaped left brace in regex is deprecated' warning 2015-12-26 10:49:15 +00:00
Xavier Guimard
b606628e5e Add coudot in copyrights 2015-12-25 10:46:22 +00:00
Xavier Guimard
920fbebb20 Update POD 2015-12-25 10:46:11 +00:00
Xavier Guimard
f2d55e8e1d Spelling error 2015-12-22 13:17:46 +00:00
Xavier Guimard
e933d3badb Preload configuration 2015-12-21 11:16:10 +00:00
Clément Oudot
4a1f957fdd Set trunk version to 1.9.0 2015-12-18 09:31:36 +00:00
Xavier Guimard
cc38a382e2 Convert to utf8 2015-12-17 22:24:59 +00:00
Xavier Guimard
bfe9869cc1 Overload sendError to add user id 2015-12-10 12:28:07 +00:00
Xavier Guimard
71c26b0d83 Parse user datas only if set 2015-12-02 20:25:02 +00:00
Clément Oudot
df59540d22 make tidy 2015-10-22 08:40:12 +00:00
Clément Oudot
7dd6f9dab4 Apply r3909 to trunk (#848) 2015-09-23 07:40:41 +00:00
Clément Oudot
c0e4872250 Fix purgeLocalCache script (#846) 2015-09-21 14:02:48 +00:00
Clément Oudot
9f689ed222 Apply session activity patch to trunk (#845) 2015-09-21 08:18:46 +00:00
Xavier Guimard
7b830114e4 Add user datas access 2015-07-27 21:15:14 +00:00
Xavier Guimard
9261cf2836 Manager logging in progress
Logging works now for protection => 'manager||authenticate'
2015-07-27 19:30:22 +00:00
Xavier Guimard
4645600eda Trace in progress (cfgAuthor) 2015-07-26 12:18:16 +00:00
Xavier Guimard
aae896a839 Starting cfgAuthor job 2015-07-24 07:23:57 +00:00
François-Xavier Deltombe
9cfb59ad81 Nginx handler: API completed and config files examples added 2015-06-20 22:31:47 +00:00
Xavier Guimard
87fd52a0ab Update copyrights 2015-06-18 11:00:24 +00:00
Xavier Guimard
63c3aaa9b6 Patch to manage multiple handler types in the same server 2015-06-16 11:08:42 +00:00
Xavier Guimard
562348d4bf Re-order choice 2015-06-15 17:39:56 +00:00
Xavier Guimard
b8dc61d1f6 Export makes no sense here 2015-06-15 14:19:30 +00:00
Xavier Guimard
b5db36d8e1 Bad usage of $AUTOLOAD 2015-06-15 11:41:44 +00:00
Xavier Guimard
1a7a7b1899 Ability to use more than 1 Handler::API::* module 2015-06-15 11:13:56 +00:00
Xavier Guimard
ecea942f11 Avoid little warning 2015-06-10 20:40:26 +00:00
Xavier Guimard
564ecac9e2 Very strange ModPerl bug 2015-06-10 20:40:18 +00:00
Xavier Guimard
d694323b11 Set version to 2.0.0 2015-05-14 06:45:13 +00:00
Xavier Guimard
2186b2295b Update MANIFESTs 2015-05-14 06:44:46 +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
1c0df34268 Replace version 2.00 by 2.0.0 2015-04-15 14:18:38 +00:00
Xavier Guimard
e84963ac32 Bad $_ use 2015-04-13 20:32:12 +00:00
Xavier Guimard
705c48b6fc Die on load error 2015-04-13 20:12:13 +00:00
Clément Oudot
3ee120fe2b Do not update session _lastSeen at each request (#805) 2015-04-11 11:27:33 +00:00
Xavier Guimard
375feb9329 Remove port number in hostname 2015-04-07 19:24:17 +00:00
Xavier Guimard
d1136112f1 Authorize access when rule is set to none even if conf is bad 2015-04-05 18:07:49 +00:00
Xavier Guimard
63429e9dff Use $self->{protection} if defined
Else, manager protection is not used: section is set to [handler]
2015-04-05 18:07:47 +00:00
Clément Oudot
798ade94a8 Use remote_ip/client_ip depending on Apache 2 version (#802) 2015-03-28 13:40:35 +00:00
Clément Oudot
6f128235af Set version 2.00 in the trunk 2015-03-11 09:05:04 +00:00
Clément Oudot
7a7bb1fbda make tidy on all files 2015-03-10 15:07:33 +00:00
Xavier Guimard
fc6c64d6f3 Part back to 3466: Attributes.pm is not github version 2015-03-09 15:39:15 +00:00
Clément Oudot
2ff2d0e01a First version of OpenIDConnect RP module (#183) 2014-11-14 14:29:55 +00:00
Clément Oudot
f97f5c72e0 make tidy 2014-07-24 15:48:32 +00:00
Clément Oudot
e011600113 Show error from Common::Session module in logs (#741) 2014-07-24 15:37:12 +00:00
Clément Oudot
05e1b778c8 Remove stats on local cache in 1.4 branch, already fixed in trunk (#727) 2014-07-23 12:20:21 +00:00
David COUTADEUR
9e267def6f fix /status page in branch 1.4 and trunk (references #727) 2014-07-22 16:29:03 +00:00
François-Xavier Deltombe
833efce50b Handler: define constant MAINTENANCE_CODE in API modules (#630) 2014-07-09 16:06:53 +00:00
François-Xavier Deltombe
c802450e7e Post Replay: forward POST data not defined in config (#630) 2014-07-09 14:58:03 +00:00
François-Xavier Deltombe
219787e1d6 Handler, refactoring Post Replay: parameters added in manager (#630) 2014-07-09 13:04:42 +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
bde515e504 Handler: merge API functions set_err_header_out and set_header_out (LEMONLDAP-630) 2014-07-07 08:08:39 +00:00
François-Xavier Deltombe
778da7f7ac Handler: implement function print() for API::CGI (LEMONLDAP-630) 2014-07-07 07:57:35 +00:00
François-Xavier Deltombe
2be522b2ec Handler: Refactor UpdateCookie by relying on Main:: methods (#630) 2014-07-07 07:02:46 +00:00
François-Xavier Deltombe
209e60fd87 Handler: clean comments in Main.pm (#630) 2014-07-04 17:12:06 +00:00
François-Xavier Deltombe
b572b051b5 Fix bug of incomplete request header cleaning with unprotect (#728) 2014-07-04 16:28:06 +00:00
François-Xavier Deltombe
10288887e2 Handler: to be able to read request headers in jail - for CGI (#633) 2014-07-04 15:10:18 +00:00
François-Xavier Deltombe
656600007a Handler: to be able to read request headers in jail (#633) 2014-07-04 15:07:42 +00:00
François-Xavier Deltombe
8b745dc095 LL::NG::Handler::API::ApacheMP2::uri_with_args usable as a function or as a method (#633) 2014-07-04 09:12:57 +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
45c845c718 Handler: add some logs at configuration reload (#630) 2014-07-03 15:21:06 +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
19703f8919 Update session in cache for loca macros not by hand anymore,
but with LL::NG::Common::Session functions (#724)
2014-07-03 09:46:20 +00:00
François-Xavier Deltombe
e2feaf796d Handler: update test for svn commit r3468 (#717) 2014-07-03 09:30:41 +00:00
François-Xavier Deltombe
16e2a6a374 Handler : fix slight bug introduced by r3470
(Note: I made a mistake on the file selected for previous commit)
2014-07-03 09:09:56 +00:00
François-Xavier Deltombe
c0a2153d1d Handler: fix slight bug introduced by r3470 2014-07-02 14:59:00 +00:00
François-Xavier Deltombe
9fb000e33c Handler: refactor LL::NG::Handler::CGI with LL::NG::Handler::main methods (#630) 2014-07-02 14:22:17 +00:00
François-Xavier Deltombe
42ceb63218 Handler: update CGI API (#630) 2014-07-02 14:20:00 +00:00
François-Xavier Deltombe
ee4b9e8bfe Handler: Make possible to define access rule in run() params (#630) 2014-07-02 14:14:33 +00:00
François-Xavier Deltombe
004f73f476 Handler: move jail initialization out from defaultValuesInit (#717) 2014-07-02 11:23:40 +00:00
François-Xavier Deltombe
72f15a2bd9 Handler: Fix a slight bug at configuration reload (#630) 2014-07-02 11:21:24 +00:00
François-Xavier Deltombe
201095d30a Handler: re-implement vhost aliases (#630) 2014-07-01 13:11:45 +00:00
François-Xavier Deltombe
0f0ac0dc69 Handler: Update tests for previous commit (#630) 2014-07-01 12:59:11 +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
31439ff7c9 Move methods handler() and logout() from Main to SharedConf (#630) 2014-07-01 10:09:35 +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
899b9899bd Slight bugfix for previous commit (#633) 2014-07-01 09:42:15 +00:00
François-Xavier Deltombe
5181ffbe79 Handler: Unify session data substitution in headers and locationRules (#633) 2014-07-01 09:31:53 +00:00
François-Xavier Deltombe
a469de88ba Handler: Main::GlobalInit moved into Reload::configReload (#717) 2014-06-30 18:34:23 +00:00
François-Xavier Deltombe
29bcee135b Handler: Rename Initialization::GlobalInit into Reload (#717) 2014-06-30 09:35:32 +00:00
François-Xavier Deltombe
d1bd1e0003 Handler: simplify init management (#717) 2014-06-30 09:18:00 +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
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
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
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
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
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
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
François-Xavier Deltombe
2a447eeb47 Adapt Nginx vhost files because of the perl API inabilities (#583) 2014-05-30 17:11:00 +00:00
Clément Oudot
c4755ab360 Fix Status.pm (#26) 2014-05-27 13:46:11 +00:00
Clément Oudot
66c93ec387 Manage already existing accounts in Register (#26) 2014-05-27 13:42:00 +00:00
Clément Oudot
b334e6ae36 Update Handler MANIFEST 2014-05-27 13:41:28 +00:00
Clément Oudot
57182767f4 Some error codes for Register (#26) 2014-05-26 16:25:33 +00:00
Clément Oudot
c4b9635c53 Fix some tests after recent modifications on Handler 2014-05-24 18:23:34 +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
c6f5fa3c21 Draft of API modularization, with set_user method working 2014-05-23 13:35:47 +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
003a36afd1 pass $apacheRequest object to accessRules in parameters
instead of as a global var (#630)
2014-05-22 15:08:18 +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