Debian Codegraph @

doc/sources/admin/upgrade_2_x.rst

raw
1 Upgrade from 2.x to 2.y
2 =======================
3
4
5 Please apply general caution as you would with any software: have
6 backups and a rollback plan ready!
7
8 Known regressions in the latest released version
9 ------------------------------------------------
10
11 None at the moment
12
13 Security issue involving Nginx handlers
14 ---------------------------------------
15
16 In Nginx < 1.29.5, a hacker can workaround the correlation between a Nginx virtualHost and the "Host" field.
17 And despite its documentation and the RFC 9112, Nginx builds automatically the HTTP_HOST variable based on the
18 maybe-forged host header (fastCGI or uWSGI).
19 F5 fixes this but doesn't want to consider this as a security issue, therefore there will be no fix for previous
20 versions.
21
22 In Lemonldap-NG context this security issue may allow an attacker who has a valid account to gain privileges to
23 handler protected application, including the LemonLDAP::NG manager application if not protected by other means.
24
25 Default Nginx files installed in versions 2.16.8, 2.21.4, and 2.22.3 may help **but are not enough to fix the issue**.
26
27 You are vulnerable if you have:
28
29 * Nginx (< 1.29.5) as web server, AND one of:
30
31 * ``$http_host`` variable is used in your Nginx files
32 * OR you didn't force ``HTTP_HOST`` in your FastCGI/uWSGI parameters
33
34 * AND no network component able to block the bad request (haproxy blocks the poisoned requests for example)
35
36 If so, you MUST apply this fix for every virtual host.
37
38 You must spot these lines anywhere you're using FastCGI *(including Lemonldap-NG files of course)*::
39
40 fastcgi_param HOST $http_host;
41 # or if using uwsgi server:
42 #uwsgi_param HOST $http_host;
43
44 and **replace** them by::
45
46 fastcgi_param HTTP_HOST $host;
47 # or if using uwsgi server:
48 # Do not set this line if your /etc/nginx/uwsgi_params contains already this line
49 #uwsgi_param HTTP_HOST $host;
50
51 .. important::
52
53 If the HOST variable is not defined in a protected handler virtual host, you MUST still **add** the HTTP_HOST as defined above
54
55 For precaution measures, it is also recommended to fix the Host header sent when using Nginx as (reverse-)proxy. You should spot this line::
56
57 proxy_set_header Host $http_host;
58
59 and **replace** it by::
60
61 proxy_set_header Host $host;
62
63
64 2.23.1
65 ------
66
67 Regression on session purge
68 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
70 If you are using the ``Apache::Session::Browseable::Postgres`` or
71 ``Apache::Session::Browseable::MySQL`` session backends, you may be affected by
72 a regression in the session cleanup script that prevents old sessions from
73 being purged and slowly degrade performance over time.
74
75 This issue affects LemonLDAP::NG versions 2.22.x and 2.23.0. Users of these
76 versions are advised to upgrade to 2.23.1 as soon as possible, and double check
77 that session purge correctly works after upgrading.
78
79 SAML Common Domain Cookie now validates the return URL
80 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81
82 The SAML Common Domain Cookie (CDC) endpoint used to redirect to the ``url``
83 parameter without any control on its origin, which allowed it to be abused as
84 an open redirector (CWE-601).
85
86 Starting from this version, the CDC endpoint only redirects to a return URL
87 whose host belongs to:
88
89 * a registered SAML federation member (any host found in the ``entityID`` or
90 endpoint ``Location`` of your declared SAML SP/IdP metadata), or
91 * a domain listed in the ``trustedDomains`` configuration parameter, or
92 * the portal hosting the CDC.
93
94 Any other return URL is now rejected with an HTTP 400 error.
95
96 Existing federations keep working without any change, since their members are
97 already declared through SAML metadata. **However**, if your CDC is shared with
98 partners whose return URL host is not present in the SAML metadata (for example
99 non-LL::NG service providers), you must add their domain to ``trustedDomains``.
100
101 2.23.0
102 ------
103
104 OAuth2 Handler now hides Access Tokens
105 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106
107 The :doc:`oauth2handler` no longer transmits the Access Token to the backend application after verifying it.
108
109 You you rely on this behavior, you can add a custom exported header such as
110
111 * Key: ``Auth-Token``
112 * Value: ``$_accessToken``
113
114 JQuery Cookie is no longer bundled
115 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116
117 LemonLDAP::NG no longer provides the ``jquery.cookie`` library. If you need this
118 library in your custom JS code, you need to add it back to
119 ``/usr/share/lemonldap-ng/portal/htdocs/static/`` directory, or use a CDN.
120
121 New index on CAS session
122 ~~~~~~~~~~~~~~~~~~~~~~~~
123
124 This new version can now manage backchannel logoutRequest coming from a CAS server (LL::NG configured as CAS client).
125
126 You need to add an index on CAS sessions table on ``auth_cas_ticket`` if you use a DB backend, and you want to use this new feature without impacting performances.
127
128 See ``sessions.my.sql`` and ``sessions.pg.sql`` to get SQL instructions.
129
130 Possible regression on self-referencing macros
131 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132
133 Starting with this version, every time you use a second factor, macros will be
134 reevaluated even if the authentication level does not change.
135
136 If you have defined a :ref:`macro<macros_and_groups>` whose definition contain
137 itself, this may cause a change of behavior. It is generally not recommended
138 to do this, but if you still want to, make sure the macro's definition is
139 idempotent, as it may be calculated several times.
140
141 Stricter partner naming policy
142 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
143
144 Partner names (OIDC RPs, SAML SPs, Identity Providers, CAS Applications, and CAS Servers) are now subject to a stricter naming policy. Special characters, including spaces and dots, are no longer allowed. Allowed characters are now alphanumerics, hyphens (``-``) and underscores (``_``).
145
146 If your existing configuration contains non-compliant names, you will be blocked from saving any new changes post-upgrade until these partners are renamed.
147
148 2.22.2
149 ------
150
151 OpenID-Connect secrets
152 ~~~~~~~~~~~~~~~~~~~~~~
153
154 Starting from this version, LLNG follows strictly RFC 6749, so client\_id
155 and client\_secret are "URI-decoded" before comparison. In some rare case
156 this could generate a regression, then avoid using `%` character.
157
158 *sessionNotOnOrAfter duration* now starts when SAML response is built
159 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
160
161 Previously, setting the *sessionNotOnOrAfter duration* on a SAML SP caused the
162 SAML response generated by LemonLDAP to indicate that the SAML session should
163 expire once that duration has elapsed since the user has logged in.
164
165 We now compute the requested session end time from the moment the SAML response
166 is generated, which can happen several hours after the user has logged in. If
167 you relied on the previous behavior, please adjust your configuration.
168
169 2.22.0
170 ------
171
172 lemonldap-ng-cli
173 ~~~~~~~~~~~~~~~~
174
175 Starting from this version, the ``lemonldap-ng-cli`` refuses to store
176 invalid configurations. If you use it with intermediate steps that are
177 invalid before next changes, use the new **--unsafe** option.
178
179 Stricter check on OIDC post-logout redirect URIs
180 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181
182 In logout scenarios involving disconnecting from a remote IDP, you may start to
183 encouter error messages that warn about unauthorized URIs.
184
185 This happens because the `post_logout_redirect_uri` is now more strictly
186 enforced in those scenarios. Make sure you have allowed the value of that
187 parameter in *OpenID Connect Relying Parties* > XXX > *Options* > *Logout* >
188 *Allowed redirection addresses for logout*
189
190 Change in post-logout redirect URI when LLNG is an OIDC client
191 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
192
193 If you use :doc:`authopenidconnect`, to delegate authentication to an external
194 OpenID Connect provider, you have to update your provider's configuration in
195 order to allow a new *post-logout* redirect URIs::
196
197 https://<portal>/oauth2/rlogoutreturn
198
199 Change in timeout behavior for 2FA
200 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201
202 Contrary to previous versions, resending a 2FA code no longer extends the 2FA timeout anymore.
203
204 If your users start having issues with timeouts after upgrading, make sure you have set
205
206 *General parameters* » *Second factors* » *Global options* » *Login timeout* to a high enough value
207
208 In the particular case of email-based code delivery, you can override this parameter with
209
210 *General parameters* » *Second factors* » *Mail second factor* » *Code timeout*
211
212
213 Configuration update needed for OpenID Connect Providers that use signed requests
214 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
215
216 If you configured the following option:
217
218 OpenID Connect Providers » op-example » Options » Protocol » Token endpoint authentication method = client_secret_jwt or private_key_jwt
219
220 Then, starting with this version, you need to explicitely configure the desired algorithm in *Signature algorithm for token endpoint authentication*:
221
222 * For ``client_secret_jwt``, specify ``HS256`` or greater.
223 * For ``private_key_jwt``, specify ``RS256`` or greater if you are using a RSA key, or ``ES256`` or greater if you are using an EC key.
224
225 2.21.1
226 ------
227
228 Make sure no bogus CAS servers have been created
229 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230
231 Because of an issue in LemonLDAP::NG 2.21.0, your CAS applications might have
232 been erroneously created under the "CAS Servers" section as well.
233
234 Remove all unwanted **CAS Servers** entries from the manager after upgrading to
235 version 2.21.1 (or above) if this is the case.
236
237 2.21.0
238 ------
239
240 Log4Perl log level
241 ~~~~~~~~~~~~~~~~~~
242
243 Starting from this version, the global ``logLevel`` parameter is applied
244 for all loggers. Thus if you managed your log level inside the log4perl
245 configuration file, you may loose unimportant logs if your ``logLevel`` is
246 higher.
247
248 "typ" header in JWT
249 ~~~~~~~~~~~~~~~~~~~
250
251 Version earlier than 2.17.0 had a "typ" header in all JWT following OIDC
252 specification. In version 2.17.0, this header was wrongly removed when
253 JWT library changed. This header has been restored starting from version
254 2.21.0. However some application may fail with it, so a
255 ``Don't insert typ header`` option has been aded into RP/OP options to be
256 able to restore 2.17.0 behavior.
257
258
259 2.20.2
260 ------
261
262 Post-logout redirection
263 ~~~~~~~~~~~~~~~~~~~~~~~
264
265 Starting from this version, passing a ``url=`` parameter to the LemonLDAP logout
266 URL (``https://auth.example.com/logout`` or
267 ``https://auth.example.com/?logout=1``) will only redirect the user to this URL
268 if the URL's domain is a known VHost, or a trusted domain.
269
270 To add a new domain to the trusted domain list, use the ``trustedDomains``
271 variable or the *General parameters* > *Advanced parameters* > *Security* >
272 *Trusted domains*. Wildcards can be used to allow all subdomains.
273
274 2.20.0
275 ------
276
277 2FA deletion now uses a timeout
278 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
279
280 Users may start encountering timeout errors if they remain on the 2FA manager
281 page too long before deleting their 2FA. In this situation, the page is
282 automatically refreshed. However, to improve user experience, you may want to
283 increase the *General Parameters* » *Second factors* » *Global options* »
284 *Login timeout* setting to increase the timeout.
285
286 Client secrets as GET parameters are no longer allowed
287 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
288
289 When calling the OIDC ``/oauth2/token`` endpoint, we no longer allow the
290 ``client_secret`` parameter to be sent as an URL parameter. It has to be sent
291 either in the body (*client_secret_post*), or as part of and ``Authentication``
292 HTTP header (*client_secret_basic*).
293
294
295 U2F is no more supported
296 ~~~~~~~~~~~~~~~~~~~~~~~~
297
298 Current browsers no more support U2F specification which has been replaced by
299 **Webauthn**. Starting from version 2.20.0, LemonLDAP::NG no more supports U2F also.
300
301 You can easily replace **U2F** by **Webauthn**. LemonLDAP::NG provides also migration tools:
302
303 ::
304
305 lemonldap-ng-sessions secondfactors migrateu2f --all
306 lemonldap-ng-sessions secondfactors delType --all U2F
307
308 See :ref:`lemonldap-ng-sessions doc <cli-sessions>`
309
310 window.datas.login is no longer defined in JS code
311 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312
313 The `window.datas.login` global JS variable used to contain the user's login.
314 It caused a security issue and was removed in this version. This only affects
315 users who wrote custom JS code for the portal and who explicitely used this
316 variable.
317
318 Status changed
319 ^^^^^^^^^^^^^^
320
321 The obsolete "portal status" and "status" features were removed from 2.20.0.
322 An alternative is available using :doc:`Use message broker to collect status <statuscollect>`.
323
324 SAML federations
325 ^^^^^^^^^^^^^^^^
326
327 The recommended way of configuring SAML federations is now to keep bundled metadata in a separate file.
328
329 Switching to this method should improve performance.
330
331 Check :doc:`SAML federation documentation <samlfederation>` to know how use this new method.
332
333 Auth::DBI no longer uses stored procedures to generate UNIX-style hashes
334 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
335
336 In this version, we no longer require stored procedures to generate
337 ``unixcrypt1``, ``unixcrypt5`` and ``unixcrypt6`` hashes. The computation is
338 performed by LemonLDAP::NG itself.
339 This does not require any action by the admin or users. Let us know if you
340 encounter regressions.
341
342 Portal templates changes
343 ~~~~~~~~~~~~~~~~~~~~~~~~
344
345 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
346
347 2.19.0
348 ------
349
350 RPM packaging
351 ~~~~~~~~~~~~~
352
353 RPM packages have been reorganized to match the Debian packages naming convention.
354 The upgrade via ``yum`` or ``dnf`` should work smoothly.
355
356 For EL8 and EL9, you must update the GPG key:
357
358 ::
359
360 curl https://lemonldap-ng.org/security/GPG-KEY-LLNG-SECURITY.asc > /etc/pki/rpm-gpg/RPM-GPG-KEY-OW2
361
362
363 Like Debian, jobs are now managed through systemd timers:
364
365 ::
366
367 systemctl edit lemonldap-ng-portal.timer
368 systemctl edit lemonldap-ng-handler.timer
369
370 Portal templates changes
371 ~~~~~~~~~~~~~~~~~~~~~~~~
372
373 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
374
375
376 2.18.2
377 ------
378
379 PKCE is enforced for all OIDC clients supporting it
380 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
381
382 In versions before 2.18.2, PKCE was not verified doing the token request of an
383 OIDC flow unless the "Require PKCE" option was set explicitly in the
384 LemonLDAP::NG configuration for this RP.
385
386 Starting from now, PKCE will be verified anytime a RP enabled it by specifying
387 the ``code_challenge`` parameter during the authorization request.
388
389 RPs that do not support PKCE will not send the ``code_challenge`` parameter,
390 and therefore will not be affected by this change.
391
392 2.18.0
393 ------
394
395 "Stay connected" has changed name
396 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
397
398 The "Stay connected on this device" feature has been refactored into a more
399 generic :doc:`trustedbrowser` feature. The name of the configuration section
400 has changed in the manager but no particular actions are required for existing
401 installations.
402
403 Change in second factor UI
404 ~~~~~~~~~~~~~~~~~~~~~~~~~~
405
406 After registering a new second factor of type Webauthn, TOTP or Generic,
407 the user is now brought back to the main 2FA Management screen.
408 You can cancel this behavior by calling preventDefault in your JS handler:
409
410 .. code:: javascript
411
412 $(document).on( "mfaAdded", { }, function( event, info ) {
413 event.preventDefault();
414 });
415
416 See :doc:`jqueryevents` for more information
417
418 Apache2 handler now uses IP from mod_remoteip
419 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
420
421 If you use `mod_remoteip <https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html>`__ in your handlers,
422 LemonLDAP::NG will now correctly use the IP from ``mod_remoteip`` in
423 ``$env->{REMOTE_ADDR}``.
424
425 OpenID Connect issuer now implements ``acr_values``
426 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
427
428 The `acr_values` from OpenID Connect authorization requests can now be used to increase the authentication level required for accessing a service. If after upgrading you start noticing that users are now asked to upgrade their session when trying to access OIDC applications, you should check the `acr_values` requested by you application, and map them to the desired authentication level in `OpenID Connect Service` » `Authentication context`
429
430 Cron files moved to systemd timers on Debian
431 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
432
433 On Debian, LemonLDAP::NG now uses systemd timers for maintenance tasks instead
434 of ``cron.d`` scripts.
435
436 If you need to modify the frequency of execution of your maintenance tasks, you should use a systemd override:
437
438 ::
439
440 systemctl edit liblemonldap-ng-portal-perl.timer
441 systemctl edit liblemonldap-ng-handler-perl.timer
442
443 ::
444
445 [Timer]
446 OnCalendar=*-*-* *:07:07
447
448
449 Encryption of password in session
450 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
451
452 If you store the password in session because you need to replay it on a protected application (Auth Basic or form replay),
453 you should now enable password encryption in session (this option is disabled by default).
454
455 This requires to decrypt the ``$_password``` value before sending it to the application, with the ``decrypt()`` method.
456
457 Safe Jail
458 ~~~~~~~~~
459
460 For security reason, we now enforce Safe Jail by default in lemonldap-ng.ini, so an administrator with only access to Manager
461 cannot disable it. If you want to improve security, update your lemonldap-ng.ini. To retrieve the old behavior (Safe Jail configuration
462 through Manager), just let the option commented in lemonldap-ng.ini.
463
464 Portal templates changes
465 ~~~~~~~~~~~~~~~~~~~~~~~~
466
467 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
468
469 2.17.1
470 ------
471
472 Restriction in use of OIDC `request_uri`
473 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
474
475 A little-know feature of OIDC (*note*: you are probably not using it) allows the OpenID Provider, LemonLDAP::NG in this case, to fetch the Authorization request parameters itself by indicating a `request_uri` parameter.
476
477 By default, we now disallow this feature, and require LemonLDAP::NG admins to explicitly allow Request URIs in the configuration (*OpenID Connect Relying Parties* » *Your RP* » *Options* » *Security* » *Allowed URLs for fetching Request Object*). This setting allows wildcards such as ``http://rp.example.com/*``.
478
479 2.17.0
480 ------
481
482 "Stay connected" now uses a TOTP challenge
483 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
484
485 The :doc:`Stay connected on this device <trustedbrowser>` feature now relies on
486 a TOTP challenge. This means it only works if the client web browser is in
487 sync with the server. Existing sessions are not affected by this new
488 requirement.
489
490 Possible regression in unicode character handling for UWSGI users
491 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
492
493 We fixed an issue that made UWSGI behavior inconsistent with other deployment
494 methods (FastCGI, ApacheMP2). As a consequence, you might notice a change in
495 the way non-ASCII characters are displayed by LemonLDAP::NG.
496
497 If you used workarounds to make non-ASCII characters work in UWSGI, you can
498 remove them in this new release.
499
500 If you instead wish to restore previous behavior, you can also set the
501 following configuration in `/etc/uwsgi/apps-available/llng-server.yaml` :
502
503 .. code:: yaml
504
505 uwsgi:
506 # ...
507 env: LLNG_SKIPUTF8DOWNGRADE=1
508
509 However, restoring previous behavior is not recommended, as you are likely to run into
510 even more encoding bugs in the long run.
511
512
513 Portal templates changes
514 ~~~~~~~~~~~~~~~~~~~~~~~~
515
516 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
517
518 2.16.1
519 --------
520
521 AuthBasic now enforces 2FA activation
522 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
523
524 In previous versions of LemonLDAP::NG, a 2FA protected account didn't need to use their second factor when authenticating to an :doc:`AuthBasic handler <authbasichandler>`.
525
526 If you are *absolutely sure* that you want 2FA protected accounts to access AuthBasic handlers, which are password only, you can add the following test in your 2FA activation rules ::
527
528 and not $env->{AuthBasic}
529
530
531 2.0.16
532 ------
533
534 Security
535 ~~~~~~~~
536
537 Behaviour change in 2FA registration to avoid adding device without testing current authentication level.
538 (see `issue 2803 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2803>`__)
539 User must log in by using its higher available 2FA to register a new one.
540
541 Change in error messages
542 ~~~~~~~~~~~~~~~~~~~~~~~~
543
544 The error messages for the following situations have been changed:
545
546 .. csv-table::
547 :header: "Situation", "Translation code (lemonldap-ng.ini)", "Translation code (lang.json)", "New error message"
548 :delim: ,
549 :widths: auto
550
551 An authentication request has been made to an unknown CAS application,error_107,PE107,This application is not known
552 An authentication request has been made to an unknown SAML service provider,error_107,PE107,This application is not known
553 An authentication request has been made to an unknown OIDC relying party,error_107,PE107,This application is not known
554 User was not allowed to access a CAS application,error_84,PE84,You're not authorized to access to this host
555 An unauthorized logout URL was specified during logout from a CAS application,error_108,PE108,Unauthorized URL
556 An unauthorized Redirect URI was used during an OIDC login,error_108,PE108,Unauthorized URL
557 The provided url= parameter does not correspond to a protected URL,error_109,PE109,Not a protected or trusted URL
558
559 Users who wish to adjust error messages in these situations should update their translation files
560
561
562 Improve the use of multiple 2FA types
563 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
564
565 Changes in custom 2F::Register:: modules
566 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
567
568 * Users who use their own ``Lemonldap::NG::Portal::2F::Register::`` modules
569 must now inherit from ``Lemonldap::NG::Portal::2F::Register::Base``
570
571 * The `canUpdateSfa` function has been moved into the 2FA Engine and should not
572 be called by your registration module anymore
573
574
575
576 For plugin developpers
577 ~~~~~~~~~~~~~~~~~~~~~~
578
579 Change in ``passwordAfterChange`` hook behavior
580 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
581
582 If you wrote a custom plugin using the ``passwordAfterChange`` hook, return
583 codes other than ``PE_OK`` will now be displayed by the portal, instead of
584 being ignored.
585
586 Change in ``modifyPassword`` method
587 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
588
589 The ``modifyPassword`` method now takes a hash of arguments to specify extra behavior
590
591 Before:
592
593 .. code:: perl
594
595 # Method definition
596 sub modifyPassword {
597 my ( $self, $req, $pwd, $useMail ) = @_;
598 ...
599 }
600
601 # Method call
602 $self->p->_passwordDB->modifyPassword($req, $pwd, $useMail);
603
604 After:
605
606 .. code:: perl
607
608 # Method definition
609 sub modifyPassword {
610 my ( $self, $req, $pwd, %args ) = @_;
611 my $useMail = $args{useMail};
612 ...
613 }
614
615 # Method call
616 $self->p->_passwordDB->modifyPassword($req, $pwd, useMail => $useMail);
617
618 2.0.15
619 ------
620
621 Translation overrides in lemonldap-ng.ini now take priority over skin
622 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
623
624 Previously, the presence of a translation JSON file within a skin prevented
625 translation messages defined in ``lemonldap-ng.ini`` from being used.
626
627 Additionally, it was not possible to translate strings in email templates using
628 a custom skin file.
629
630 These two bugs are now fixed, be sure to check that you do not have duplicate
631 translations in ``lemonldap-ng.ini`` and in your skin files (``*.json``). If you do,
632 the translation in ``lemonldap-ng.ini`` will now take priority.
633
634 See :ref:`documentation on translating messages <intlmessages>` for
635 details
636
637 Portal templates changes
638 ~~~~~~~~~~~~~~~~~~~~~~~~
639
640 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
641
642 2.0.14
643 ------
644
645 Security
646 ~~~~~~~~
647
648 * **CVE-2021-40874**: RESTServer pwdConfirm always returns true with Combination + Kerberos (see `issue 2612 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2612>`__)
649
650
651 U2F deprecation in Chrome 98
652 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
653
654 Chrome 98 `removed U2F support by default <https://developer.chrome.com/blog/deps-rems-95/#deprecate-u2f-api-cryptotoken>`__. You can enable them back temporarily in ``chrome://flags`` by setting *Enable the U2F Security Key API* to *Enabled* and *Enable a permission prompt for the U2F Security Key API* to *Disabled*
655
656 LemonLDAP::NG provides a newer alternative: :doc:`webauthn2f`, which is compatible with U2F security keys. Please read :ref:`migrateu2ftowebauthn` for instructions on how to convert U2F secrets to WebAuthn.
657
658 After migration, you will need to disable U2F from the configuration and enable WebAuthn instead, in *General Parameters* » *Second Factors* » *WebAuthn*
659
660 Weak encryption used for password-protected SAML keys
661 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
662
663 Previous versions of LemonLDAP::NG used a weak encryption algorithm to protect
664 SAML keys when a password was set during certificate generation.
665
666 Run the following command to check if this is your case::
667
668 lemonldap-ng-cli get samlServicePrivateKeySig
669 lemonldap-ng-cli get samlServicePrivateKeyEnc
670
671 If the output of either command starts with ``BEGIN ENCRYPTED PRIVATE KEY``,
672 then it probably means you generated your keys using the vulnerable manager
673 code.
674
675 In this case, you can convert your existing keys to a stronger encryption using
676 the following command ::
677
678 # Extract your existing keys. If samlServicePrivateKeyEnc is empty, you can
679 # skip it entirely
680 lemonldap-ng-cli get samlServicePrivateKeySig | \
681 sed 's/samlServicePrivateKeySig = //' > saml-sig.pem
682 lemonldap-ng-cli get samlServicePrivateKeyEnc | \
683 sed 's/samlServicePrivateKeyEnc = //' > saml-enc.pem
684
685 # Re-encrypt the private key, using the same passphrase
686 openssl pkey -in saml-sig.pem -aes256 -out saml-sig-aes.pem
687 openssl pkey -in saml-enc.pem -aes256 -out saml-enc-aes.pem
688
689 #Or, if you are using OpenSSL 3+
690 openssl pkey -provider legacy -provider default -in saml-sig.pem \
691 -aes256 -out saml-sig-aes.pem
692 openssl pkey -provider legacy -provider default -in saml-enc.pem \
693 -aes256 -out saml-enc-aes.pem
694
695 Then, simply reimport your keys ::
696
697 lemonldap-ng-cli set samlServicePrivateKeySig "$(cat saml-sig-aes.pem)"
698 lemonldap-ng-cli set samlServicePrivateKeyEnc "$(cat saml-enc-aes.pem)"
699
700 If is recommended to keep the same password as before, if not, adjust the
701 ``samlServicePrivateKeySigPwd`` and ``samlServicePrivateKeyEncPwd`` variables as well.
702
703 This operation is transparent and does not require any change to your existing
704 SAML configuration or SAML applications
705
706 LemonLDAP::NG version is returned by the CheckState plugin
707 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
708
709 If you use the `/checkstate` URL to monitor LemonLDAP::NG, you may notice a slight change in the output format:
710
711 *2.0.13* ::
712
713 {"result":1}
714
715 *2.0.14* ::
716
717 {"result":1,"version":"2.0.14"}
718
719 Depending on your load balancer or monitoring configuration, this can cause false negatives.
720
721 This plugin is disabled by default, and you may use a shared secret to hide this information to regular users and bots, please check the :doc:`checkstate` documentation for more information.
722
723 Empty scopes now rejected in OAuth2.0 grants
724 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
725
726 Previously, it was possible to be granted an empty scope, or an automatic
727 ``openid`` scope when doing :ref:`OAuth2.0 Password Grant
728 <resource-owner-password-grant>` or :ref:`Client Credentials Grant
729 <client-credentials-grant>`.
730
731 Starting with *2.0.14*, empty scopes are no longer allowed (:rfc:`6749#section-3.3`).
732 You need to either add a `scope` parameter to your request, or define a default
733 scope in your Relying Party's :ref:`Scope Rules <oidcscoperules>`.
734
735 Manager API
736 ~~~~~~~~~~~
737
738 The service parameter set in a request to create or update a CAS application must now be an array, and no more a string.
739
740 Changes impacting plugin developpers
741 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
742
743 * If you are using Custom authentication modules, userDB modules or password
744 modules, ``$portal->loadedPlugins`` no longer contains a key with the name of
745 your module. You should use ``$portal->_authentication``, ``$portal->_userDB``,
746 or ``$portal->_passwordDB`` instead to get your module instance.
747
748 Portal templates changes
749 ~~~~~~~~~~~~~~~~~~~~~~~~
750
751 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
752
753
754
755 2.0.13
756 ------
757
758 Portal templates changes
759 ~~~~~~~~~~~~~~~~~~~~~~~~
760
761 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
762
763 2.0.12
764 ------
765
766 Security
767 ~~~~~~~~
768
769 * **CVE-2021-35473**: Access token lifetime is not verified with OAuth2 Handler (see `issue 2549 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2549>`__)
770 * **CVE-2021-35472**: Session cache corruption can lead to authorization bypass or spoofing (see `issue 2539 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2539>`__)
771 * 2FA bypass with sfOnlyUpgrade and totp2fDisplayExistingSecret (see `issue 2543 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2543>`__)
772 * Incorrect regexp construction in isTrustedUrl lets attacker steal session on CDA application (see `issue 2535 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2535>`__)
773 * XSS on register form (see `issue 2495 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2495>`__)
774 * Wildcard in virtualhost allows being redirected to untrusted domains (see `issue 2477 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2477>`__)
775
776 Client Credential sessions missing expiration time
777 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
778
779 If you started using Client Credential grants in 2.0.11, you may have encountered
780 `issue 2481 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2481>`__.
781
782 Because of this bug, the created sessions may never be purged by the ``purgeCentralCache`` script.
783
784 In order to detect these sessions, you can run the following command:
785
786 ::
787
788 lemonldap-ng-sessions search --where _session_kind=SSO --select _session_id --select _utime | \
789 jq -r '. | map(select(._utime == null)) | map(._session_id) | join ("\n")'
790
791 This will output a list of SSO sessions with no expiration time.
792
793 Review them manually using ::
794
795 lemonldap-ng-sessions get <session_id>
796
797 You can then remove them with ::
798
799 lemonldap-ng-sessions delete <session_id> <session_id> <etc.>
800
801 Brute-force protection plugin may cause duplicate persistent sessions
802 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
803
804 Because of `bug #2482 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2482>`__ , some users may notice that the persistent session database is filling with duplicate sessions. Some examples include:
805
806 * An uppercase version of the regular persistent session (dwho vs DWHO)
807 * An unqualified version (dwho vs [email protected])
808
809 This bug was fixed in 2.0.12, but administrators are advised to clean up their persistent session database to remove any duplicate persistent sessions remaining after the upgrade.
810
811 OpenID Connect check session iframe
812 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
813
814 The OIDC check session iframe is not working, it has been removed from OIDC configuration metadata. It should not impact any installation as this feature was already broken.
815
816 Simplification of TOTP options
817 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
818
819 The following options have been removed from TOTP configuration:
820
821 * Display existing secret (``totp2fDisplayExistingSecret``)
822 * Change existing secret (``totp2fUserCanChangeKey``)
823
824 Portal templates changes
825 ~~~~~~~~~~~~~~~~~~~~~~~~
826
827 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
828
829
830 2.0.11
831 ------
832
833 Portal templates changes
834 ~~~~~~~~~~~~~~~~~~~~~~~~
835
836 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
837
838 2.0.10
839 ------
840
841 Security
842 ~~~~~~~~
843
844 A vulnerability affecting LemonLDAP::NG installations has been found out when ALL following criteria apply:
845
846 * Your handler server uses Nginx
847 * Your virtual host configuration contains per-URL ``skip`` or ``unprotect`` access rule
848
849 In this situation, you have to update your LUA configuration file like ``/etc/nginx/nginx-lua-headers.conf``. See also `issue 2434 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2434>`__.
850
851 Other minor security fixes:
852
853 * It is now possible to hide sessions identifier in Manager (parameter ``displaySessionId``). See also `issue 2350 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2350>`__.
854 * Second factor management by end user now requires safer conditions. See also `issue 2332 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2332>`__, `issue 2337 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2337>`__ and `issue 2338 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2338>`__.
855
856 Main changes
857 ~~~~~~~~~~~~
858
859 - New dependency: IO::Socket::Timeout
860 - TOTP check tolerates forward AND backward clock drift (totp2fRange)
861 - Avoid assignment in expressions option is disabled by default
862 - RHEL/CentOS SELinux users should install the new ``lemonldap-ng-selinux`` package to fix `an issue with the new default cache directory <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2401>`__
863 - If you use :doc:`applications/mattermost` with OpenID Connect, you need to set the ``id`` claim type to *Integer*
864 - BruteForceProtection plugin now prevents authentication on backend if an account is locked
865 - In the Manager API, postLogoutRedirectUri is now `returned and consumed as an array <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2347>`__
866 - We fixed a bug that caused SAML sessions to be created and never deleted, you should check your session databases for sessions that have ``"_session_kind": "ISAML"`` but no ``_utime``. You can safely delete SAML sessions with no ``_utime`` during the upgrade.
867
868 Portal templates changes
869 ~~~~~~~~~~~~~~~~~~~~~~~~
870
871 If you modified some non-custom HTML templates, :doc:`refer to template upgrade instructions<upgrade_templates>`
872
873 2.0.9
874 -----
875
876 - Bad default value to display OIDC Consents tab has been fixed.
877 The default value is now: ``$_oidcConsents && $_oidcConsents =~ /\w+/``
878 - Some user log messages have been modified, check :doc:`logs documentation <logs>`
879 (see also `#2244 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/2244>`__)
880 - SAML SOAP calls are now using ``text/xml`` instead of ``application/xml`` as the MIME Content Type, as required by `the SOAP standard <https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383526>`__
881 - Incremental lock times values can now be set in BruteForceProtection plugin through Manager.
882 It MUST be a list of comma separated values. Default values are ``5, 15, 60, 300, 600``
883 - This version is not compatible with :doc:`applications/mattermost`
884
885 Cookie issues with Chrome
886 ~~~~~~~~~~~~~~~~~~~~~~~~~
887
888 This release fixes several issues related to the change in SameSite cookie
889 policy for Google Chrome users. The new default value of the SameSite
890 configuration parameter will set SameSite to ``Lax`` unless you are using SAML,
891 in which case it will be set to ``None``.
892
893 This means that from now on, any LemonLDAP::NG installation using SAML must be
894 served over HTTPS, as SameSite ``None`` value requires the ``Secure`` flag in cookie.
895
896 Change in default cache directory
897 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
898
899 The default config/session cache directory has been moved from ``/tmp`` to
900 ``/var/cache/lemonldap-ng`` in order to avoid `issues with cache purges
901 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2254>`__ when using
902 Systemd. This change is only applied to new installations. If your
903 installation is experiencing cache purge issues, you need to manually change
904 your existing ``localSessionStorageOptions/cache_root`` parameter from ``/tmp``
905 to ``/var/cache/lemonldap-ng``. Be sure to create this directory on your
906 file system before modifying your configuration.
907
908 If you are using SELinux, you also need to run the following commands ::
909
910 semanage fcontext --add -t httpd_cache_t -f a '/var/cache/lemonldap-ng(/.*)?'
911 restorecon -R /var/cache/lemonldap-ng/
912
913 Required changes in NGINX handler rules (CVE-2020-24660)
914 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
915
916 We discovered a vulnerability that affects LemonLDAP::NG installations when ALL of the following criteria apply:
917
918 * You are using the :doc:`LemonLDAP::NG Handler<configvhost>` to protect applications
919 * Your handler server uses Nginx
920 * Your virtual host configuration contains per-URL access rules based on
921 regular expressions in addition to the built-in *default* access rule.
922
923 .. note::
924
925 You are safe from this vulnerability if your virtualhost only uses a regexp-based rule to trigger logout
926
927 If you are in this situation, you need to modify *all* your handler-protected
928 virtualhosts by making the following change:
929
930 * Replace ``fastcgi_param X_ORIGINAL_URI $request_uri`` by ``fastcgi_param X_ORIGINAL_URI $original_uri`` if you are using FastCGI
931 * Replace ``uwsgi_param X_ORIGINAL_URI $request_uri`` by ``uwsgi_param X_ORIGINAL_URI $original_uri`` if you are using uWSGI
932 * Right after ``auth_request /lmauth;``, add the following line ::
933
934 set $original_uri $uri$is_args$args;
935
936 You can check the :doc:`configvhost` page for more information
937
938 LDAP certificate validation (CVE-2020-16093)
939 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
940
941 LDAP server certificates were previously not verified by default when using secure transports (LDAPS or TLS), see `CVE-2020-16093 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2250>`__. Starting from this release, certificate validation is now enabled by default, including on existing installations.
942
943 If you have configured your CA certificates incorrectly, LemonLDAP::NG will now start complaining about invalid certificates. You may temporarily disable it again with the following command ::
944
945 /your/path/to/lemonldap-ng-cli set ldapVerify none
946
947 If you use LDAP as a configuration storage, and want to temporarily disable certificate validation, you must make the following addition to `/etc/lemonldap-ng/lemonldap-ng.ini` ::
948
949 [configuration]
950 ...
951 ldapVerify = none
952
953 If you use LDAP as a session backend, you are strongly encouraged to also upgrade corresponding ``Apache::Session`` modules (``Apache::Session::LDAP`` or ``Apache::Session::Browseable``). After this upgrade, if you want to temporarily disable certificate validation, you can add the following parameter to the list of Apache::Session module options:
954
955 * key: ``ldapVerify``
956 * value: ``none``
957
958 Please note that it is HIGHLY recommended to set certificate validation to `require` when contacting LDAP servers over a secure transport to avoid man-in-the-middle attacks.
959
960 2.0.8
961 -----
962
963 - New dependency: Perl module Time::Fake is now required to run unit
964 test and build packages, but should not be mandatory to run the
965 software.
966 - Nginx configuration: some changes are required to allow IPv6, see
967 `#2152 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/2152>`__
968 - Option ``singleSessionUserByIP`` was removed, see
969 `#2159 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/2159>`__
970 - A memory leak was found in perl-fcgi with Perl < 5.18, a workaround
971 is possible with Apache and llng-fastcgi-server, see
972 `#1314 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/1314>`__
973
974 - With Apache: set ``FcgidMaxRequestsPerProcess 500`` in portal
975 virtual host
976 - With llng-fastcgi-server: set ``PM_MAX_REQUESTS=500`` in
977 llng-fastcgi-server service configuration
978
979 - Cookie ``SameSite`` value: to avoid problems with recent browsers,
980 SAML POST binding, LLNG cookies are now tagged as
981 "**SameSite=None**". You can change this value using manager,
982 "**SameSite=Lax**" is best for installations without federations.
983 **Important note**: if you're using an unsecured connection *(http://
984 instead of https://)*, "SameSite=None" will be ignored by browsers
985 and users that already have a valid session might be prompted to
986 login again.
987 - OAuth2.0 Handler: a VHost protected by the OAuth2.0 handler will now
988 return a 401 when called without an Access Token, instead of
989 redirecting to the portal, as specified by
990 :rfc:`6750#section-3`.
991
992 - If you encounter the following issue:
993
994 ::
995
996 AH01630: client denied by server configuration: /usr/share/lemonldap-ng/manager/api/api.fcgi
997
998 when trying to access the portal. It probably comes from incorrect
999 Apache configuration. Remove the (optional and disabled by default)
1000 manager API config:
1001
1002 ::
1003
1004 rm /etc/httpd/conf.d/z-lemonldap-ng-api.conf && systemctl reload httpd
1005
1006 2.0.7
1007 -----
1008
1009 - Security:
1010
1011 - `#2040 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/2040>`__:
1012 Configuration of a redirection URI for an OpenID Connect Relying
1013 Party is now mandatory, as defined in the specifications. If you
1014 save your configuration, you will have an error if some of your RP
1015 don't have a redirect URI configured.
1016 - `#1943 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/1943>`__
1017 /
1018 `CVE-2019-19791 <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19791>`__:
1019 along with the patch provided in 2.0.7 in
1020 ``Lemonldap/NG/Common/PSGI/Request.pm``, Apache rewrite rule must
1021 be updated to avoid an unprotected access to REST services:
1022
1023 ::
1024
1025 portal-apache2.conf
1026
1027 .. code-block:: apache
1028
1029 RewriteCond "%{REQUEST_URI}" "!^/(?:(?:static|javascript|favicon).*|.*\.fcgi(?:/.*)?)$"
1030 RewriteRule "^/(.+)$" "/index.fcgi/$1" [PT]
1031
1032 ::
1033
1034 manager-apache2.conf
1035
1036 .. code-block:: apache
1037
1038 RewriteCond "%{REQUEST_URI}" "!^/(?:static|doc|lib|javascript|favicon).*"
1039 RewriteRule "^/(.+)$" "/manager.fcgi/$1" [PT]
1040
1041 - Other:
1042
1043 - Option ``checkTime`` was enabled by default in
1044 ``lemonldap-ng.ini``, this let the portal check the configuration
1045 immediately instead of waiting for configuration cache expiration.
1046 You can keep this option enabled unless you need strong
1047 :doc:`performances<performances>`.
1048
1049 - Removed parameters:
1050
1051 - ``samlIdPResolveCookie``
1052
1053 2.0.6
1054 -----
1055
1056 - Option was added to display generate password box in
1057 :doc:`password reset by mail plugin<resetpassword>`. If you use this
1058 feature, you must enable this option, which is disabled by default.
1059 - If you use the default \_whatToTrace macro and a case insensitive
1060 authentication backend, then a user can generate several persistent
1061 sessions for the same login (see `issue
1062 1869 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/1869>`__).
1063 This can lead to a security bug if you enabled 2FA, which rely on
1064 data stored in the persistent session. To fix this, either choose a
1065 unique attribute for \_whatToTrace, either force lower case in your
1066 macro:
1067
1068 .. code-block:: perl
1069
1070 $_auth eq 'SAML' ? lc($_user.'@'.$_idpConfKey) : $_auth eq 'OpenIDConnect' ? lc($_user.'@'.$_oidc_OP) : lc($_user)
1071
1072 - On CentOS 7 / RHEL 7, a system upgrade breaks ImageMagick, which is
1073 used to display captchas (see
1074 `#1951 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/1951>`__).
1075 To fix this, you can run the following commands:
1076
1077 ::
1078
1079 yum install -y urw-base35-fonts-legacy
1080 sed 's,/usr/share/fonts/default/Type1/,/usr/share/X11/fonts/urw-fonts/,g' -i /etc/ImageMagick/type-ghostscript.xml
1081
1082 2.0.5
1083 -----
1084
1085 - The Text::Unidecode perl module becomes a requirement *(it will be
1086 automatically installed if you upgrade from from the deb or RPM
1087 repositories)*
1088 - CAS logout starts validating the service= parameter, but only if you
1089 use the CAS Access control policy. The URL sent in the service=
1090 parameter will be checked against
1091 :ref:`known CAS applications<idpcas-configuring-cas-applications>`,
1092 Virtual Hosts, and
1093 :ref:`trusted domains<security-configure-security-settings>`. Add
1094 your target domain to trusted domains if you suddenly start having
1095 "Invalid URL" messages on logout
1096 - Improvements in cryptographic functions: to take advantage of them,
1097 **you must change the encryption key** of LemonLDAP::NG (see
1098 :ref:`CLI example<cli-examples-encryption-key>`).
1099 - Debian packaging: FastCGI / uWsgi servers require llng-lmlog.conf and
1100 llng-lua-headers.conf. Those configuration files are now provided by
1101 lemonldap-ng-handler package and installed in /etc/nginx/snippets
1102 directory.
1103
1104 Upgrading from 2.0.0 or 2.0.1 to later versions
1105 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1106
1107 If you have :doc:`installed LemonLDAP::NG from official RPMs<installrpm>`, you
1108 may run into bug `#1757
1109 <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues/1757>`__ and lose your
1110 Apache configuration files while updating from LemonLDAP::NG 2.0.0 or 2.0.1 to
1111 later versions. Please backup your ``/etc/httpd/conf.d/z-lemonldap-ng-*.conf``
1112 files before the update.