| 1 |
Slave |
| 2 |
===== |
| 3 |
|
| 4 |
============== ===== ======== |
| 5 |
Authentication Users Password |
| 6 |
============== ===== ======== |
| 7 |
✔ ✔ |
| 8 |
============== ===== ======== |
| 9 |
|
| 10 |
Presentation |
| 11 |
------------ |
| 12 |
|
| 13 |
LL::NG Slave backend relies on HTTP headers to retrieve user login |
| 14 |
and/or attributes. |
| 15 |
|
| 16 |
- Authentication: will check user login in a header and create session |
| 17 |
without prompting any credentials (but will register client IP and creation date) |
| 18 |
- Users: collect data transferred in HTTP headers by the "master". |
| 19 |
|
| 20 |
It allows one to put LL::NG::portal behind another web SSO, or behind a |
| 21 |
SSL hardware to delegate SSL authentication to that hardware. |
| 22 |
|
| 23 |
Configuration |
| 24 |
------------- |
| 25 |
|
| 26 |
In Manager, go in ``General Parameters`` > ``Authentication modules`` |
| 27 |
and choose Slave for authentication or users module. |
| 28 |
|
| 29 |
Then, go in ``Slave parameters``: |
| 30 |
|
| 31 |
- **Authentication level**: authentication level for this module |
| 32 |
- **Header for user login**: header containing user main login |
| 33 |
- **Display authentication logo**: display Slave logo |
| 34 |
|
| 35 |
|
| 36 |
Security |
| 37 |
^^^^^^^^ |
| 38 |
|
| 39 |
- **Master's IP address**: IP addresses of servers which are accredited to authenticate user. |
| 40 |
This is a security point to prevent someone to create a session by sending custom headers. |
| 41 |
You can set netblocks in CIDR notation or list IP addresses, space or comma separated. |
| 42 |
By example: ``127.0.0.2, 192.168.1.1 10.20.30.0/24``. A blank value disables this checking. |
| 43 |
- **Extracted certificate field**: must be set to the Apache/Nginx environment variable |
| 44 |
containing the ``cn`` attribute. A blank value disables this checking. |
| 45 |
- **Regexp to test extracted certificate field**: regular expression used for testing client certificate ``cn`` |
| 46 |
- **Control header name**: header containing value to check. |
| 47 |
A blank value disables this checking. |
| 48 |
- **Control header content**: value to check. A blank value disables this checking. |
| 49 |
|
| 50 |
|
| 51 |
Exported Variables |
| 52 |
^^^^^^^^^^^^^^^^^^ |
| 53 |
|
| 54 |
You have then to declare HTTP headers exported by the main SSO. Example : |
| 55 |
|
| 56 |
================= ======================== |
| 57 |
Key (LL::NG name) Value (HTTP header name) |
| 58 |
================= ======================== |
| 59 |
uid Auth-User |
| 60 |
mail User-Email |
| 61 |
================= ======================== |
| 62 |
|
| 63 |
Example |
| 64 |
~~~~~~~ |
| 65 |
|
| 66 |
- Request with curl (AuthChoice with Slave and Secured cookie => double |
| 67 |
cookies for a single session): |
| 68 |
|
| 69 |
**Control header name**: control |
| 70 |
|
| 71 |
**Control header content**: password |
| 72 |
|
| 73 |
:: |
| 74 |
|
| 75 |
curl -k https://127.0.0.1:19876 -H 'CN: dwho' -H 'Host: auth.example.com' -H 'Accept: application/json' -H 'control: password' -d "lmAuth=2_Slave" | json_pp |
| 76 |
|
| 77 |
- Response for good authentication: |
| 78 |
|
| 79 |
.. code-block:: javascript |
| 80 |
|
| 81 |
{ |
| 82 |
"result" : 1, |
| 83 |
"error" : 0, |
| 84 |
"id_http" : "5237ce20290d6110915a05d62f52618955b5f71b6dd3424481372ad419a5b122", |
| 85 |
"id" : "16fec9bd7a0523328568ca919ee0a6d6e329832f6c302bf36b106db92b5ec23d" |
| 86 |
} |
| 87 |
|
| 88 |
See also :doc:`exported variables configuration<exportedvars>`. |