Commit Graph

428 Commits

Author SHA1 Message Date
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