Debian Codegraph @

doc/sources/admin/prereq.rst

raw
1 Before you begin
2 ================
3
4 Before you install LemonLDAP::NG on a production environment, you need to make
5 several choices regarding architecture.
6
7
8 Application protection
9 ----------------------
10
11 Protecting applications is the reason why you are installing LemonLDAP::NG.
12 Before starting with the installation, you need to inventory all the
13 applications you want to protect and how you can protect them.
14
15
16 SSO protocols
17 ~~~~~~~~~~~~~
18
19 This is the simplest option: your application is natively compatible with an SSO protocol such as CAS, SAML or OpenID Connect:
20
21 .. image:: arch-sso.png
22
23 LemonLDAP::NG Handler
24 ~~~~~~~~~~~~~~~~~~~~~
25
26 Some older applications can only be protected by placing a reverse proxy in
27 front of them. In this case, applications will receive user information
28 through HTTP headers. LemonLDAP::NG provides a *Handler* component to perform
29 this function.
30
31 .. image:: arch-handler.png
32
33
34 The handler has always been the central feature of LemonLDAP::NG, however it
35 comes at a cost:
36
37 * You applications must share the SSO server's DNS suffix so that cookies can
38 be transmitted in between the portal and handler (:doc:`CDA <cda>` lets you
39 use different domains, but it also comes at a cost)
40 * All your HTTP trafic will be centralized through the handler, therefore you
41 must carefully size and configure your handler server if you don't want it to
42 be a bottleneck
43
44 .. note::
45
46 You can use both protection modes at the same time on a single
47 LemonLDAP::NG instance. On small deployments (hundreds of users) you can
48 also probably run the handler and portal on the same server. On large
49 deployments you can run as many handlers as you like.
50
51
52 Web Server
53 ----------
54
55 LemonLDAP::NG is compatible with two common web servers
56
57 - Nginx
58 - Apache HTTPd
59
60
61 If you choose Apache, and intent to use the LemonLDAP::NG Handler, you must use
62 the *Prefork MPM*, since *mod_perl* is not compatible with other MPMs.
63
64 If you are an advanced user, and you only want to run the Portal and/or Manager
65 components, you can use any PSGI compatible web server instead.
66
67 Nginx is the recommended choice for running a *Handler*. If you are not running
68 a *Handler*, you can freely choose your favorite between *Apache* and *Nginx*.
69
70 You can find more information at the :doc:`platformsoverview` page.
71
72
73 DNS configuration
74 -----------------
75
76 If you are running a *Handler*, it is highly recommended to dedicate a DNS
77 subdomain to SSO-protected apps, such as ``*.example.com``.
78
79 In every case, you will need at least:
80
81 * One DNS record for the portal (``auth.example.com``)
82 * One DNS record for the manager (``manager.example.com``)
83
84 TLS configuration
85 -----------------
86
87 For production use, TLS is extremely recommended. You will need X.509
88 certificates for at least ``auth.example.com`` and ``manager.example.com``.