| 1 |
Apache |
| 2 |
====== |
| 3 |
|
| 4 |
============== ===== ======== |
| 5 |
Authentication Users Password |
| 6 |
============== ===== ======== |
| 7 |
✔ |
| 8 |
============== ===== ======== |
| 9 |
|
| 10 |
Presentation |
| 11 |
------------ |
| 12 |
|
| 13 |
LL::NG can delegate authentication to Apache, so it is possible to use |
| 14 |
any `Apache authentication |
| 15 |
module <http://httpd.apache.org/docs/current/howto/auth.html>`__, for |
| 16 |
example Kerberos, Radius, OTP, etc. |
| 17 |
|
| 18 |
|
| 19 |
.. attention:: |
| 20 |
|
| 21 |
To authenticate users by using Kerberos, you can now use |
| 22 |
the new :doc:`Kerberos authentication module<authkerberos>` which allow |
| 23 |
one to chain Kerberos in a :doc:`combination<authcombination>`\ |
| 24 |
|
| 25 |
|
| 26 |
.. tip:: |
| 27 |
|
| 28 |
Apache authentication module will set the ``REMOTE_USER`` |
| 29 |
environment variable, which will be used by LL::NG to get authenticated |
| 30 |
user. |
| 31 |
|
| 32 |
Configuration |
| 33 |
------------- |
| 34 |
|
| 35 |
LL::NG |
| 36 |
~~~~~~ |
| 37 |
|
| 38 |
In General Parameters > Authentication modules, choose ``Apache`` as |
| 39 |
authentication backend. |
| 40 |
|
| 41 |
You may want to failback to another authentication backend in case of |
| 42 |
the Apache authentication fails. Use then the |
| 43 |
:doc:`Multiple authentication module<authmulti>`, for example: |
| 44 |
|
| 45 |
:: |
| 46 |
|
| 47 |
Apache;LDAP |
| 48 |
|
| 49 |
|
| 50 |
.. tip:: |
| 51 |
|
| 52 |
In this case, the Apache authentication module should not |
| 53 |
require a valid user and not be authoritative, else Apache server will |
| 54 |
return an error and not let LL::NG Portal manage the failback |
| 55 |
authentication. |
| 56 |
|
| 57 |
.. _apache-1: |
| 58 |
|
| 59 |
Apache |
| 60 |
~~~~~~ |
| 61 |
|
| 62 |
The Apache configuration depends on the module you choose, you need to |
| 63 |
look at the module documentation, for example: |
| 64 |
|
| 65 |
- `Kerberos <http://modauthkerb.sourceforge.net/>`__ |
| 66 |
- `NTLM <http://search.cpan.org/~speeves/Apache2-AuthenNTLM-0.02/AuthenNTLM.pm>`__ |
| 67 |
- `Radius <http://freeradius.org/mod_auth_radius/>`__ |
| 68 |
- ... |
| 69 |
|
| 70 |
Tips |
| 71 |
---- |
| 72 |
|
| 73 |
Compatibility with Identity Provider modules |
| 74 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 75 |
|
| 76 |
When using IDP modules (like CAS or SAML), the activation of Apache |
| 77 |
authentication can alter the operation. This is because the client often |
| 78 |
need to request directly the IDP, and the Apache authentication will |
| 79 |
block the request. |
| 80 |
|
| 81 |
In this case, you can add in the Apache authentication module: |
| 82 |
|
| 83 |
.. code-block:: apache |
| 84 |
|
| 85 |
Satisfy any |
| 86 |
Order allow,deny |
| 87 |
allow from APPLICATIONS_IP |
| 88 |
|
| 89 |
This will bypass the authentication module for request from |
| 90 |
APPLICATIONS_IP. |