Debian Codegraph @

doc/sources/admin/authcas.rst

raw
1 CAS
2 ===
3
4 ============== ===== ========
5 Authentication Users Password
6 ============== ===== ========
7 ✔
8 ============== ===== ========
9
10 Presentation
11 ------------
12
13 LL::NG can delegate authentication to a CAS server. This requires `Perl
14 CAS module <http://sourcesup.cru.fr/projects/perlcas/>`__.
15
16
17 .. tip::
18
19 LL::NG can also act as :doc:`CAS server<idpcas>`, that allows
20 one to interconnect two LL::NG systems.
21
22 LL::NG can also request proxy tickets for its protected services. Proxy
23 tickets will be collected at authentication phase and stored in user
24 session under the form:
25
26 ``_casPT<serviceID>`` = **Proxy ticket value**
27
28 They can then be forwarded to applications through
29 :ref:`HTTP headers<headers>`.
30
31 .. tip::
32
33 CAS authentication will automatically add a
34 :doc:`logout forward rule<logoutforward>` on CAS server logout URL in
35 order to close CAS session on LL::NG logout.
36
37 Configuration
38 -------------
39
40 In Manager, go in ``General Parameters`` > ``Authentication modules``
41 and choose CAS for authentication.
42
43 .. tip::
44
45 You can then choose any other module for users and
46 password.
47
48 Then, go in ``CAS parameters``:
49
50 - **Authentication level**: Authentication level for this module
51
52 .. attention::
53
54 Browser implementations of formAction directive are inconsistent
55 (e.g. Firefox doesn't block the redirects whereas Chrome does).
56 Administrators may have to modify formAction value with wildcard
57 likes \*.
58
59 In Manager, go in :
60
61 ``General Parameters`` > ``Advanced Parameters`` > ``Security`` >
62 ``Content Security Policy`` > ``Form destination``
63
64
65 Then create CAS servers in the Manager.
66
67 Exported Attributes
68 ~~~~~~~~~~~~~~~~~~~
69
70 The attributes defined here will completely replace any attributes you
71 may have declared in the global ``CAS Service`` configuration. In order
72 to re-use the global configuration, simply set this section to an empty
73 list.
74
75 Proxied services
76 ~~~~~~~~~~~~~~~~
77
78 In this section, set the list of services for which a proxy ticket is
79 requested:
80
81 - **Key**: Service ID
82 - **Value**: Service URL (CAS service identifier)
83
84
85 Options
86 ~~~~~~~
87
88 - **Server URL** *(required)*: CAS server URL (must use \https://)
89 - **Renew authentication** *(default: disabled)*: Force authentication
90 renewal on CAS server
91 - **Gateways authentication** *(default: disabled)*: Force transparent
92 authentication on CAS server
93 - **Comment**: set a comment
94
95 Display
96 ~~~~~~~
97
98 Used only if at least 2 CAS servers are declared
99
100 - **Name**: Name of the CAS server
101 - **Logo**: Logo of the CAS server
102 - **Tooltip**: Information displayed on mouse over the button
103 - **Resolution rule**: Rule that will be applied to preselect a CAS server for
104 a user. You have access to all environment variables *(like user IP address)*
105 and all session keys
106
107 For example, to preselect this server for users coming from 129.168.0.0/16 network
108
109 ::
110
111 $env->{REMOTE_ADDR} =~ /^192\.168/
112
113 To preselect this server when the ``MY_SRV`` :doc:`choice <authchoice>` is selected ::
114
115 $_choice eq "MY_SRV"
116
117 - **Order**: Used for sorting CAS server
118
119 .. tip::
120
121 If no proxied services are defined, CAS authentication will not
122 activate the CAS proxy mode with this CAS server.
123
124 Manual IDP Selection
125 --------------------
126
127 When using multiple CAS servers, LemonLDAP::NG will display an additional
128 choice screen to let the user decide which server they want to use.
129
130 In addition to the *resolution rule* described above, you can also use the
131 ``idp`` URL parameter to automatically select a CAS server for the
132 user: ``https://auth.example.com/?idp=srv-example``