Commit Graph

2988 Commits

Author SHA1 Message Date
Christophe Maudoux
be28b60e66 Append identities rule (#1658) 2019-03-09 23:29:10 +01:00
Christophe Maudoux
7e1119a88d Fix mistake & typo (#1664) 2019-03-09 23:27:54 +01:00
Christophe Maudoux
bf8040a78a Fix empty submitted value (#1664) 2019-03-09 21:31:49 +01:00
Christophe Maudoux
049df70e53 Erase sessionInfo if spoofed identity is not allowed (#1664) 2019-03-09 13:18:39 +01:00
Christophe Maudoux
dfd286c9fa Compute spoofed session with real and spoofed attributes (#1664) 2019-03-09 13:05:44 +01:00
Christophe Maudoux
09281f8d22 Append identities rule and fix error catching (#1664) 2019-03-08 11:39:19 +01:00
Christophe Maudoux
bea84c8847 Typo (#1664) 2019-03-07 23:39:50 +01:00
Christophe Maudoux
b368925323 Typo (#1658) 2019-03-07 23:39:37 +01:00
Xavier Guimard
77301e70ca Merge branch 'v2.0' 2019-03-07 22:29:34 +01:00
Xavier Guimard
bc2bef4ff4 Please use our .perltidyrc 2019-03-07 18:22:58 +01:00
Maxime Besson
bfc2b7ca19 Make meta tags slightly more xml friendly 2019-03-07 18:20:05 +01:00
Xavier Guimard
c3f5960452 Improvements + API calls
@maudoux: could you review this?
2019-03-07 18:15:48 +01:00
Christophe Maudoux
a9b0298624 Fix using attributes (#1658) 2019-03-07 17:15:03 +01:00
Christophe Maudoux
09996f9894 Improve unit test (#1667) 2019-03-07 15:23:57 +01:00
Christophe Maudoux
cc04740252 Fix userControl (#1667) 2019-03-07 15:19:04 +01:00
Christophe Maudoux
ef4f1fb0bf Fix test submitted user param (#1667) 2019-03-07 10:47:14 +01:00
Christophe Maudoux
e0204c6a79 Test submitted user param (#1667) 2019-03-06 23:08:22 +01:00
Christophe Maudoux
cbf84c7ecb Update manifest 2019-03-06 22:31:51 +01:00
Christophe Maudoux
9225d49216 Allow Impersonation with all auth modules (#1664) 2019-03-06 22:31:37 +01:00
Christophe Maudoux
a88fe916f0 Update manifest 2019-03-06 21:29:21 +01:00
Christophe Maudoux
6e50f41687 Fix session update (#1664) 2019-03-06 21:29:03 +01:00
Christophe Maudoux
e32e5adf59 Append unit test (#1664) 2019-03-06 21:28:45 +01:00
Christophe Maudoux
e506c5cc58 Using current session if exists (#1664) 2019-03-06 19:26:32 +01:00
Christophe Maudoux
a05f71789e WIP - Fix groups merging (#1664) 2019-03-06 17:59:09 +01:00
Christophe Maudoux
8bc9e50947 WIP - Fix groups merging (#1664) 2019-03-06 17:58:40 +01:00
Christophe Maudoux
13fdc5eda8 Append unit test (#1664) 2019-03-06 17:58:09 +01:00
Christophe Maudoux
a31d26c608 Spoof Authentication and userDB modules (#1664) 2019-03-06 16:30:56 +01:00
Christophe Maudoux
7b08a7c442 Rename idSpoofing plugin to Impersonation & all relative parameters (#1664) 2019-03-06 16:30:56 +01:00
Xavier Guimard
26b80873be Modify Try.pm to handle authorizations (#1658) 2019-03-05 21:11:07 +01:00
Christophe Maudoux
6ba5c4b530 Update unit test (#1658) 2019-03-05 19:42:29 +01:00
Christophe Maudoux
4be42b06fe Alow DNS or URL (#1658) 2019-03-05 19:36:38 +01:00
Christophe Maudoux
e09c136302 Change fa icon color (#1664) 2019-03-05 15:07:54 +01:00
Christophe Maudoux
e7d1b065b7 Merge SSO groups (#1664) 2019-03-05 14:50:30 +01:00
Christophe Maudoux
ff05a8f797 Modify parameters (#1664) 2019-03-05 14:50:01 +01:00
Christophe Maudoux
782ab4af49 Fix langs (#1658) 2019-03-04 23:12:09 +01:00
Christophe Maudoux
556cfcf355 Fix unit test (#1664) 2019-03-04 22:00:07 +01:00
Christophe Maudoux
8f637658fc Improve template (#1664) 2019-03-04 21:39:46 +01:00
Christophe Maudoux
419489fa08 Improve unit test (#1664) 2019-03-04 21:28:21 +01:00
Christophe Maudoux
c7ddae854c Fix error & not found VH (#1664) 2019-03-04 20:53:39 +01:00
Maxime Besson
58a823c222 Add unit tests for metadata generation 2019-03-04 09:33:12 +01:00
Maxime Besson
e290cd59d6 Fix undef warnings in metadata generation
Fix some undef warnings introduced in
12d2db35a9
2019-03-04 09:33:12 +01:00
Maxime Besson
25d1c45fd4 Add new option to override EntityID when acting as IDP 2019-03-04 09:33:10 +01:00
Christophe Maudoux
bd8cd2ee8f Update manifest 2019-03-03 22:00:56 +01:00
Christophe Maudoux
4e51cc342b Append access rule (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
286f5b79e3 WIP - Append debug logs (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
228a37c0d2 WIP - Append parameters (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
0c59803738 WIP - Append input (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
2005e27edb WIP - Append parameter translations (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
f9db9a0258 WIP - Append conf. parameters (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
3bb7f6e664 WIP - Create session (#1664) 2019-03-03 21:27:27 +01:00
Christophe Maudoux
24ba2889af Update manifest (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
b5abdee8f3 Append unit test (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
b18fd9c9fe Fix OTT & minor improvements (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
c50b86cd51 Append unit test (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
461120ad65 Typo (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
2653cfdc9e Fix error (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
6a0b71b01a Improve display (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
d78e45cb50 Update langs (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
1f5c7a83a9 Dispatching attributes (#1658) 2019-03-03 09:20:12 +01:00
Christophe Maudoux
f857f1a8a7 Check access rules (#1658) 2019-03-03 09:20:12 +01:00
Clément OUDOT
6740269cce Restore old login history (#1656) 2019-03-03 09:19:42 +01:00
Clément OUDOT
48b86bd224 Improve log in updateSession (#1656) 2019-03-03 09:19:42 +01:00
dcoutadeur
0eef2220d2 add test to fix 'id_token validity not correctly evaluated' #1662 2019-03-03 09:19:42 +01:00
dcoutadeur
5324da2c15 fix id_token validity not correctly evaluated #1662 2019-03-03 09:19:42 +01:00
Christophe Maudoux
81481aa785 Update manifest (#1658) 2019-03-02 13:12:41 +01:00
Christophe Maudoux
f8160f2130 Append unit test (#1658) 2019-03-02 13:11:56 +01:00
Christophe Maudoux
a41b5fb945 Fix OTT & minor improvements (#1658) 2019-03-02 11:45:59 +01:00
Christophe Maudoux
f3617ef947 Append unit test (#1658) 2019-03-01 21:46:35 +01:00
Christophe Maudoux
a4af486181 Typo (#1658) 2019-03-01 21:46:05 +01:00
Christophe Maudoux
0cd3c12503 Fix error (#1658) 2019-03-01 14:07:26 +01:00
Christophe Maudoux
5e304c1a46 Improve display (#1658) 2019-03-01 13:58:40 +01:00
Christophe Maudoux
07dfd14058 Update langs (#1658) 2019-03-01 12:44:42 +01:00
Christophe Maudoux
81a37e5bcc Dispatching attributes (#1658) 2019-03-01 12:36:37 +01:00
Maxime Besson
756cf38159 Add unit tests 2019-03-01 10:18:57 +01:00
Christophe Maudoux
4fe1473f9a Check access rules (#1658) 2019-02-28 21:59:59 +01:00
Maxime Besson
4a2fecaa7a Save Urldc when using SAML Discovery
Fixes #1543
2019-02-28 17:51:50 +01:00
Clément OUDOT
d8a8832f4c Restore old login history (#1656) 2019-02-28 17:40:15 +01:00
Clément OUDOT
b3f917ac5a Improve log in updateSession (#1656) 2019-02-28 16:51:16 +01:00
dcoutadeur
ba9dc8863f add test to fix 'id_token validity not correctly evaluated' #1662 2019-02-28 10:37:51 +01:00
dcoutadeur
3af15b139e fix id_token validity not correctly evaluated #1662 2019-02-28 09:56:21 +01:00
Clément OUDOT
59d163c663 Merge branch 'v2.0' 2019-02-28 08:52:48 +01:00
Maxime Besson
12d2db35a9 Add new URLs for SP-only or IDP-only SAML metadata
This commit adds two new URLs:

/saml/metadata/idp : IDP-only metadata
/saml/metadata/sp : SP-only metadata

/saml/metadata keeps providing metadata for all SAML services
2019-02-27 18:14:30 +01:00
Christophe Maudoux
47fb53341a Hide message boxes if needed (#1660) 2019-02-27 09:49:58 +01:00
Christophe Maudoux
d273b7710d Hide message boxes if needed (#1660) 2019-02-26 23:03:30 +01:00
Christophe Maudoux
d557018c8f Improve display & langs (#1658) 2019-02-26 20:05:44 +01:00
Christophe Maudoux
97523420bf Improve display (#1658) 2019-02-26 20:05:44 +01:00
Christophe Maudoux
36200c32c5 Improve display (#1658) 2019-02-26 20:05:44 +01:00
Christophe Maudoux
cc99cec73a Improve code (#1658) 2019-02-26 20:05:44 +01:00
Christophe Maudoux
212be23313 Improve checkUser display (#1658) 2019-02-26 20:05:44 +01:00
Christophe Maudoux
2cc1af5de9 Improve checkUser display (#1658) 2019-02-26 20:05:44 +01:00
Clément OUDOT
36a8a152e7 Fix HTML code for ext2fcheck template 2019-02-26 19:11:47 +01:00
Clément OUDOT
222e1890cf Fix HTML code for ext2fcheck template 2019-02-26 18:58:53 +01:00
Christophe Maudoux
70a5c645d8 Improve checkUser display (#1658) 2019-02-25 23:34:58 +01:00
Christophe Maudoux
3f9957ee6c Fix log msg (#1658) 2019-02-25 22:25:25 +01:00
Christophe Maudoux
33efa4002c Fix langs (#1658) 2019-02-25 20:52:19 +01:00
Christophe Maudoux
5226a4fc9a Fix langs (#1658) 2019-02-25 20:41:37 +01:00
Christophe Maudoux
8401e292f8 Fix langs (#1658) 2019-02-25 20:29:43 +01:00
Christophe Maudoux
f702664409 WIP - checkUser Improve code (#1658) 2019-02-25 20:11:32 +01:00
Christophe Maudoux
1ea6e92533 WIP - checkUser append translations and parameters (#1658) 2019-02-25 20:10:57 +01:00
Christophe Maudoux
f0684f6c24 WIP - checkUser use OTT (#1658) 2019-02-25 10:58:06 +01:00
Christophe Maudoux
0f04629ed1 WIP - checkUser prepare conf (#1658) 2019-02-24 22:47:39 +01:00
Christophe Maudoux
e22a2835d1 WIP - checkUser replace 'each' loop ;-) (#1658) 2019-02-24 22:31:04 +01:00
Christophe Maudoux
ba2ab0c4a2 WIP - checkUser display transmitted headers (#1658) 2019-02-24 22:10:45 +01:00
Christophe Maudoux
557539805a WIP - checkUser hide secret attributes (#1658) 2019-02-23 23:24:13 +01:00
Christophe Maudoux
30148caf2d WIP - checkUser hide secret attributes (#1658) 2019-02-23 23:02:42 +01:00
Christophe Maudoux
c3255e1ed8 WIP - checkUser prepare loop (#1658) 2019-02-23 20:39:53 +01:00
Christophe Maudoux
0c0b3dd069 WIP - checkUser test access (#1658) 2019-02-23 11:19:40 +01:00
Christophe Maudoux
697882bd45 WIP - checkUser plugin skeleton (#1658) 2019-02-23 09:35:43 +01:00
Christophe Maudoux
ac5007fd96 Update manifest 2019-02-21 16:33:47 +01:00
Christophe Maudoux
00fae442e9 Update version (#1595) 2019-02-21 16:33:12 +01:00
Christophe Maudoux
b57a0788c2 Check JSON structure (#1595) 2019-02-21 16:25:02 +01:00
Christophe Maudoux
9fafa1d8d5 Override msg with local json files (#1595) 2019-02-20 23:22:56 +01:00
Christophe Maudoux
53eb78c53d Update unit test (#1595) 2019-02-19 23:03:40 +01:00
Christophe Maudoux
9377bf9d1b Override msg with local json files (#1595) 2019-02-19 22:51:45 +01:00
Christophe Maudoux
28caeea3c2 Partial revert (#1595) 2019-02-19 20:10:41 +01:00
Christophe Maudoux
62167a41f1 Load Portal despite translation file does not exist (#1595) 2019-02-19 17:27:28 +01:00
Christophe Maudoux
063c0f0d1b Partial revert - Modify Portal side is more consistent (#1653) 2019-02-18 20:39:47 +01:00
Christophe Maudoux
8ccb4571d3 Update MANIFEST 2019-02-17 22:27:53 +01:00
Christophe Maudoux
9679a67163 Tidy (#1632) 2019-02-16 22:42:08 +01:00
Christophe Maudoux
a28310956e Append unit test (#1632) 2019-02-16 22:00:25 +01:00
Christophe Maudoux
7802cbcc71 Optionaly let Ext2F module handle code generation (#1632) 2019-02-16 21:59:53 +01:00
Christophe Maudoux
90ddec7ce0 WIP - Optionaly let Ext2F module handle code generation (#1632) 2019-02-14 22:43:38 +01:00
Christophe Maudoux
60e80fe1b1 Improve code (#1629) 2019-02-14 22:41:58 +01:00
Christophe Maudoux
0690a0c7ab Improve code (#1625) 2019-02-14 22:12:40 +01:00
Christophe Maudoux
46f685f9b2 Improve unit test (#1632) 2019-02-14 22:09:59 +01:00
Xavier Guimard
77ccc9bbc3 Skip GPG test if gpg install fails. Fixes debci
See https://bugs.debian.org/922265
2019-02-14 16:39:27 +01:00
Xavier Guimard
4e0113ddd6 Merge branch 'v2.0' 2019-02-13 22:36:01 +01:00
Christophe Maudoux
9274c54f20 Disable Portal cache (#1651) 2019-02-13 22:35:23 +01:00
Xavier Guimard
5862481956 Set master version to 2.1.0 2019-02-12 18:21:38 +01:00
Xavier Guimard
095f9c67fd Fix LDAP policy test (Closes: #1639) 2019-02-12 12:00:49 +01:00
Clément OUDOT
0686a0844c Use a DSA account to test ppolicy (#1639) 2019-02-12 09:23:09 +01:00
Xavier Guimard
b3969ba84c Try PE_PP_PASSWORD_TOO_SHORT => fail (#1639) 2019-02-12 09:00:21 +01:00
Clément OUDOT
e7dbc48623 Add password min length policy in slapd test server (#1639) 2019-02-11 21:16:54 +01:00
Xavier Guimard
e728e0f415 Fix test count when TESTLDAP is not set (#1639) 2019-02-11 16:19:35 +01:00
Xavier Guimard
eb9500023e Add test for "lock" (#1639) 2019-02-11 16:12:49 +01:00
Xavier Guimard
e001cc4069 Enable test for "expire" too 2019-02-11 16:03:37 +01:00
Xavier Guimard
3069887a52 Call PasswordDB::LDAP if unauth user requests changing password (#1639) 2019-02-11 15:40:27 +01:00
Xavier Guimard
562526dd89 Improve LDAP reset test (#1639) 2019-02-11 14:26:41 +01:00
Clément OUDOT
ad10dc539d Use ldapAuthnLevel and dbiAuthnLevel in portal (#1648) 2019-02-11 11:55:51 +01:00
Clément OUDOT
6cb587596c Add LDAP password ppolicies in slapd test server (#1639) 2019-02-11 10:34:00 +01:00
Christophe Maudoux
46f2beb10a Typo & perltidy (#1629) 2019-02-10 22:47:56 +01:00
Christophe Maudoux
060190758f Improve unit test (#1625) 2019-02-10 22:32:47 +01:00
Christophe Maudoux
d804ce2ba5 Improve unit test (#1625) 2019-02-10 22:29:50 +01:00
Christophe Maudoux
1f11f31532 Improve unit test (#1625) 2019-02-10 11:35:15 +01:00
Christophe Maudoux
e457685e63 Improve unit test (#1625) 2019-02-10 11:17:23 +01:00
Christophe Maudoux
a7a8f70962 Update manifest 2019-02-09 23:19:24 +01:00
Christophe Maudoux
2fcc91f72d Merge branch 'v2.0' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng into v2.0 2019-02-09 23:06:02 +01:00
Christophe Maudoux
64e6c20f9f Improve unit test (#1595) 2019-02-09 23:05:51 +01:00
Christophe Maudoux
b777007ff6 Override msg by reading a file (#1595) 2019-02-09 22:38:13 +01:00
Xavier Guimard
1293643a76 Materialize failure #1639 2019-02-09 20:59:03 +01:00
Xavier Guimard
759c93b595 Full test for #1639 2019-02-09 20:53:24 +01:00
Christophe Maudoux
94574f2f19 Override msg by reading a file (#1595) 2019-02-09 20:48:46 +01:00
Clément OUDOT
a5d98e9066 Fix password template with bootstrap4 (#1639) 2019-02-09 15:41:45 +01:00
Xavier Guimard
9208beba38 Test skeleton for #1639 2019-02-09 09:49:21 +01:00
Clément OUDOT
5f800003fd Add security token when forcing password reset (#1639) 2019-02-08 10:46:06 +01:00
Christophe Maudoux
4825b477f6 Merge branch 'v2.0' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng into v2.0 2019-02-07 19:27:51 +01:00
Christophe Maudoux
4506a3ee6e CORS prevents to submit AuthSSL AJAX request with other domains (#1636) 2019-02-07 19:27:42 +01:00
Christophe Maudoux
6942606234 Update langs (#1625) 2019-02-07 18:05:51 +01:00
Christophe Maudoux
29c4a44975 Update version (#1625) 2019-02-07 17:22:14 +01:00
Christophe Maudoux
2ce4e982c9 Error level 2019-02-07 17:21:56 +01:00
Christophe Maudoux
8b995f55bf Restore OpenID activation global rule & Improve unit test (#1625) 2019-02-07 17:21:14 +01:00
Christophe Maudoux
b1048043e9 Restore GET activation global rule & Improve unit test (#1625) 2019-02-07 17:16:29 +01:00
Xavier Guimard
c7b4eb5051 tidy with new conf 2019-02-07 09:27:56 +01:00
Christophe Maudoux
9cfef329ee Append PE_ERROR constants (#1625) 2019-02-06 23:10:43 +01:00
Christophe Maudoux
5055b18087 Restore OIDC activation global rule (#1625) & Improve unit test 2019-02-06 23:10:10 +01:00
Christophe Maudoux
b36db9706e Restore SAML activation global rule (#1625) 2019-02-06 22:55:23 +01:00
Christophe Maudoux
f3bbc0e44e Improve unit test (#1625) 2019-02-06 22:54:41 +01:00
Christophe Maudoux
f8144bc108 Typo (#1625) 2019-02-06 22:54:15 +01:00
Christophe Maudoux
007a5432f9 Restore CAS activation global rule (#1625) 2019-02-06 22:16:34 +01:00
Xavier Guimard
58fc9c2fad Update versions 2019-02-06 19:30:57 +01:00
Clément OUDOT
0fe2fc1d37 Bypass error screen for LDAP password reset (#1639) 2019-02-06 18:33:42 +01:00
Clément OUDOT
121e2542ae Do not disconnect from LDAP if password modification fails (#1644) 2019-02-06 18:00:59 +01:00
Xavier Guimard
747ee78dfd Improve authenticate() rejection (#1639) 2019-02-06 15:36:45 +01:00
Christophe Maudoux
931458ad9b Merge branch 'v2.0' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng into v2.0 2019-02-06 13:20:41 +01:00
Christophe Maudoux
a994e71345 Update code (#1628) 2019-02-06 13:20:35 +01:00
Christophe Maudoux
d0ba478b6e Improve unit test (#1637) 2019-02-06 13:13:24 +01:00
Clément OUDOT
8b76218025 Fix error message for ppolicy (#1639) 2019-02-06 11:39:37 +01:00
Christophe Maudoux
70994bd7db Merge branch 'v2.0' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng into v2.0 2019-02-05 23:37:46 +01:00
Christophe Maudoux
24e58fafc9 Improve unit test (#1637) 2019-02-05 23:32:55 +01:00
Xavier Guimard
5886cbe2a0 Tidy 2019-02-05 23:12:17 +01:00
Xavier Guimard
e2b026b7c8 Fix versions 2019-02-05 23:06:18 +01:00
Christophe Maudoux
21206099ce Append display options for SAML IDP (#1637) 2019-02-05 22:39:09 +01:00
Xavier Guimard
0528f78dad Merge branch 'v2.0' 2019-02-05 19:09:42 +01:00
Xavier Guimard
f8942d156d Override templateDir before calling sendHtml (fixes: #1642) 2019-02-05 19:04:06 +01:00
Xavier Guimard
24ef6d3905 Revert "Override templateDir before calling sendHtml (#1642)"
This reverts commit 0466bf2784.
2019-02-05 19:00:01 +01:00
Clément OUDOT
c77783eb2f Merge branch 'v2.0' 2019-02-05 18:46:40 +01:00
Clément OUDOT
0466bf2784 Override templateDir before calling sendHtml (#1642) 2019-02-05 18:46:14 +01:00
Xavier Guimard
0ddcaa5dc9 Update versions 2019-02-05 18:44:38 +01:00
Clément OUDOT
8ca60a9238 Do not set portal background in CSS if no value is configured (#1643) 2019-02-05 18:39:43 +01:00
Xavier Guimard
92b65ae86f Merge branch 'v2.0' 2019-02-05 13:59:22 +01:00
Xavier Guimard
deac8a7f92 Add GPG in Choice template (#1569) 2019-02-05 13:55:39 +01:00
Xavier Guimard
ac01e63caf Update translations 2019-02-05 13:51:02 +01:00
Xavier Guimard
4934eb92f8 Merge branch 'v2.0' 2019-02-05 11:28:32 +01:00
Clément OUDOT
cb33dba014 Fix AD attributes read (#1639) 2019-02-05 10:43:17 +01:00
Clément OUDOT
93d52bce27 Update module version (#1639) 2019-02-05 10:42:48 +01:00
Clément OUDOT
3d5969f9d6 Fix AD attributes read (#1639) 2019-02-05 10:42:07 +01:00
Xavier Guimard
d4ce3950ad Improve test skips 2019-02-05 10:35:42 +01:00
Xavier Guimard
95c87d3b13 Improve test skips 2019-02-05 10:34:39 +01:00
Christophe Maudoux
b39e6ce99f WIP - Append relative parameters (#1637) 2019-02-04 23:13:54 +01:00
Christophe Maudoux
29b293395a Improve unit test (#1628) 2019-02-04 19:20:28 +01:00