Debian Codegraph @

doc/sources/admin/authremote.rst

raw
1 Remote
2 ======
3
4 ============== ===== ========
5 Authentication Users Password
6 ============== ===== ========
7 ✔ ✔
8 ============== ===== ========
9
10
11 .. danger::
12
13 This module is a LL::NG specific identity federation
14 protocol. You may rather use standards protocols like
15 :doc:`SAML<idpsaml>`, :doc:`OpenID Connect<idpopenidconnect>` or
16 :doc:`CAS<idpcas>`.
17
18 Presentation
19 ------------
20
21 - The main portal is configured to use CDA. The secondary portal is
22 declared in the Manager of the main LL::NG structure (else user will
23 be rejected).
24 - The portal of the secondary LL::NG structure is configured to
25 delegate authentication to a remote portal. A request to the main
26 session database is done (through
27 :doc:`SOAP session backend<soapsessionbackend>`) to be sure that the
28 session exists.
29 - If ``exportedAttr`` is set, only those attributes are copied in the
30 session database of the secondary LL::NG structure. Else, all data
31 are copied in the session database.
32
33 |image0|
34
35 #. User tries to access to an application in the secondary LL::NG
36 structure without having a session in this area
37 #. Redirection to the portal of the secondary area (transparent)
38 #. Redirection to the portal of the main area and normal authentication
39 (if not done before)
40 #. Redirection to the portal of the secondary area (transparent)
41 #. Secondary portal check if remote session is available. It can be done
42 via direct access to the session database or using SOAP access. Then
43 it creates the session (with attribute filter)
44 #. User can now access to the protected application
45
46
47 .. note::
48
49 Note that if the user is already authenticated on the first
50 portal, all redirections are transparent.
51
52 Configuration
53 -------------
54
55 Main LL::NG structure
56 ~~~~~~~~~~~~~~~~~~~~~
57
58 Go in Manager, and:
59
60 - activate CDA in ``General Parameters`` » ``Cookies`` »
61 ``Multiple domains``
62 - declare secondary portal in ``General Parameters`` »
63 ``Advanced Parameters`` » ``Security`` » ``Trusted domains``
64
65 Secondary LL::NG structure
66 ~~~~~~~~~~~~~~~~~~~~~~~~~~
67
68 Configure the portal to use the remote LL::NG structure.
69
70 In Manager, go in ``General Parameters`` » ``Authentication modules``
71 and choose Remote for authentication and users.
72
73 Then, go in ``Remote parameters``:
74
75 - **Portal URL**: remote portal URL
76 - **Cookie name** (optional): name of the cookie of primary portal, if
77 different from secondary portal
78 - **Sessions module**: set
79 ``Lemonldap::NG::Common::Apache::Session::SOAP`` for
80 :doc:`SOAP session backend<soapsessionbackend>`.
81 - **Sessions module options**:
82
83 - **proxy**: SOAP sessions end point (see
84 :doc:`SOAP session backend<soapsessionbackend>` documentation)
85
86 Example: interoperability between 2 organizations
87 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88
89 Using this, we can do a very simple interoperability system between 2
90 organizations using two LL::NG structures:
91
92 - each area has 2 portals:
93
94 - One standard portal
95 - One remote portal that delegates authentication to the second
96 organization (just another file on the same server)
97
98 - The normal portal has a link included in the authentication form
99 pointing to the remote portal for the users of the other organization
100
101 So on each main portal, internal users can access normally, and users
102 issued from the other organization have just to click on the link:
103
104 |image1|
105
106 #. One user tries to access to the portal
107 #. External user clicks to be redirected to the remote type portal
108 #. After redirection, normal authentication in the remote portal
109 #. Redirection to the remote type portal
110 #. Validation of the session: external user has now a local session
111
112 .. |image0| image:: /documentation/remote-principle.png
113 :class: align-center
114 .. |image1| image:: /documentation/remote-interoperability.png
115 :class: align-center
116