lemonldap-ng/doc/sources/admin/cda.rst

43 lines
753 B
ReStructuredText
Raw Normal View History

2020-05-14 23:29:41 +02:00
Cross Domain Authentication
===========================
Presentation
------------
2020-05-18 09:56:39 +02:00
:ref:`cda`
2020-05-14 23:29:41 +02:00
Configuration
-------------
Go in Manager, ``General Parameters`` » ``Cookies`` »
``Multiple domains`` and set to ``On``.
To use this feature only locally, edit ``lemonldap-ng.ini`` in section
[all]:
2020-05-21 15:13:24 +02:00
.. code-block:: ini
2020-05-14 23:29:41 +02:00
[all]
cda = 1
2020-05-21 15:13:24 +02:00
.. attention::
2020-05-14 23:29:41 +02:00
If your handler is being served by Nginx, you have to
uncomment the following lines in your nginx configuration file:
2020-05-18 09:56:39 +02:00
2020-05-14 23:29:41 +02:00
::
2020-05-18 09:56:39 +02:00
# If CDA is used, uncomment this
auth_request_set $cookie_value $upstream_http_set_cookie;
2020-05-14 23:29:41 +02:00
add_header Set-Cookie $cookie_value;
2020-05-18 09:56:39 +02:00
2020-05-14 23:29:41 +02:00
Handlers
~~~~~~~~
Choose "CDA" as type for each virtualHost concerned by CDA *(ie not in
main domain)*.