| 1 |
Connect to Renater Federation |
| 2 |
============================= |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Renater <https://www.renater.fr/>`__ provides an SAML federation for |
| 10 |
higher education in France. |
| 11 |
|
| 12 |
It is based on SAMLv2 but add some specific items like a WAYF service |
| 13 |
and a metadata bundle to list all SP and IDP from the federation. |
| 14 |
|
| 15 |
Register as Service Provider |
| 16 |
---------------------------- |
| 17 |
|
| 18 |
If you want to give access to applications protected with LL::NG to users of the federation then you will act as a Service Provider. |
| 19 |
|
| 20 |
LL::NG configuration |
| 21 |
~~~~~~~~~~~~~~~~~~~~ |
| 22 |
|
| 23 |
Configure LL::NG as SAML Service Provider with this |
| 24 |
:doc:`documentation<authsaml>`. You don't need to declare any IDP for |
| 25 |
the moment. |
| 26 |
|
| 27 |
Configure :ref:`SAML Discovery Protocol<samlservice-discovery-protocol>` |
| 28 |
to redirect users on WAYF Service. The endpoint URL is |
| 29 |
https://discovery.renater.fr/renater/WAYF. |
| 30 |
|
| 31 |
With configuration CLI: |
| 32 |
|
| 33 |
.. code-block:: shell |
| 34 |
|
| 35 |
/usr/*/lemonldap-ng/bin/lemonldap-ng-cli set \ |
| 36 |
samlDiscoveryProtocolActivation 1 \ |
| 37 |
samlDiscoveryProtocolURL https://discovery.renater.fr/renater/WAYF. |
| 38 |
|
| 39 |
SAML Federation |
| 40 |
~~~~~~~~~~~~~~~ |
| 41 |
|
| 42 |
Follow :doc:`SAML Federation documentation<samlfederation>` to enable `IDP metadata file bundle <https://services.renater.fr/federation/en/documentation/generale/metadata/fichiers>`__ download as a cronjob. For example, in ``/etc/cron.d/metadata-download`` file: |
| 43 |
|
| 44 |
.. code-block:: shell |
| 45 |
|
| 46 |
30 3 * * * root /usr/share/lemonldap-ng/bin/downloadSamlMetadata -m https://pub.federation.renater.fr/metadata/renater/main/main-idps-renater-metadata.xml -o /etc/lemonldap-ng/metadata/main-idps-renater-metadata.xml |
| 47 |
|
| 48 |
Then declare this file in SAML2 Service > Advanced > Federation > SAML Federation Metadata files. |
| 49 |
|
| 50 |
With configuration CLI: |
| 51 |
|
| 52 |
.. code-block:: shell |
| 53 |
|
| 54 |
/usr/*/lemonldap-ng/bin/lemonldap-ng-cli set \ |
| 55 |
samlFederationFiles /etc/lemonldap-ng/metadata/main-idps-renater-metadata.xml |
| 56 |
|
| 57 |
|
| 58 |
Add your SP into the federation |
| 59 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 60 |
|
| 61 |
Go to `Renater registration portal <https://federation.renater.fr/registry>`__ and register your SP on the Renater federation. |
| 62 |
|
| 63 |
.. attention:: |
| 64 |
|
| 65 |
Be sure to check all attributes as mandatory to be able |
| 66 |
to get them in SAML assertions. Remember OID and name |
| 67 |
ti configure them in LL::NG. |
| 68 |
|
| 69 |
|
| 70 |
Create the IDP template |
| 71 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 72 |
|
| 73 |
Declare a template Identity Provider in LL::NG configuration that will hold the default settings for all IDP of the Renater Federation : |
| 74 |
|
| 75 |
* Keep metadata empty |
| 76 |
* Associate it by setting Options > Federation > Entity identifier to https://federation.renater.fr/ |
| 77 |
* Declare the attributes in Exported Attributes and put ``urn:oid:OID`` in Attribute name and name in Friendly name. |
| 78 |
* Set NameID format to ``Unspecified`` in Options > NameID format |
| 79 |
|
| 80 |
With configuration CLI: |
| 81 |
|
| 82 |
.. code-block:: shell |
| 83 |
|
| 84 |
/usr/*/lemonldap-ng/bin/lemonldap-ng-cli addKey \ |
| 85 |
samlIDPMetaDataExportedAttributes/idp-renater mail '0;urn:oid:0.9.2342.19200300.100.1.3;urn:oasis:names:tc:SAML:2.0:attrname-format:uri;mail' \ |
| 86 |
samlIDPMetaDataExportedAttributes/idp-renater uid '0;urn:oid:1.3.6.1.4.1.5923.1.1.1.6;urn:oasis:names:tc:SAML:2.0:attrname-format:uri;eduPersonPrincipalName' \ |
| 87 |
samlIDPMetaDataOptions/idp-renater samlIDPMetaDataOptionsFederationEntityID 'https://federation.renater.fr/' \ |
| 88 |
samlIDPMetaDataOptions/idp-renater samlIDPMetaDataOptionsNameIDFormat 'unspecified' |
| 89 |
|
| 90 |
.. tip:: |
| 91 |
|
| 92 |
You can override these settings for a specific IDP by creating a new IDP in configuration and configuring the Federation EntityID with the value of the IDP EntityID. |
| 93 |
|
| 94 |
Register as Identity Provider |
| 95 |
----------------------------- |
| 96 |
|
| 97 |
If you want to give access to Renater applications (SP) to users authenticated with your LL::NG server, then you will act as an Identity Provider. |
| 98 |
|
| 99 |
.. _llng-configuration-renater-1: |
| 100 |
|
| 101 |
LL::NG configuration |
| 102 |
~~~~~~~~~~~~~~~~~~~~ |
| 103 |
|
| 104 |
Configure LL::NG as SAML Identity Provider with this |
| 105 |
:doc:`documentation<idpsaml>`. You don't need to declare any SP for the |
| 106 |
moment. |
| 107 |
|
| 108 |
|
| 109 |
.. attention:: |
| 110 |
|
| 111 |
If your LL::NG server will act as SP and IDP inside |
| 112 |
Renater federation, you need to set the advanced parameter "Override |
| 113 |
Entity ID for IDP". Indeed, Renater do not allow to register a SP and an |
| 114 |
IDP with the same entityID. |
| 115 |
|
| 116 |
.. _metadata-import-1: |
| 117 |
|
| 118 |
SAML Federation |
| 119 |
~~~~~~~~~~~~~~~ |
| 120 |
|
| 121 |
Follow :doc:`SAML Federation documentation<samlfederation>` to enable `SP metadata file bundle <https://services.renater.fr/federation/en/documentation/generale/metadata/fichiers>`_ download as a cronjob. For example, in ``/etc/cron.d/metadata-download`` file: |
| 122 |
|
| 123 |
.. code-block:: shell |
| 124 |
|
| 125 |
30 2 * * * root /usr/share/lemonldap-ng/bin/downloadSamlMetadata -m https://pub.federation.renater.fr/metadata/renater/main/main-sps-renater-metadata.xml -o /etc/lemonldap-ng/metadata/main-sps-renater-metadata.xml |
| 126 |
|
| 127 |
Then declare this file in SAML2 Service > Advanced > Federation > SAML Federation Metadata files. |
| 128 |
|
| 129 |
With configuration CLI: |
| 130 |
|
| 131 |
.. code-block:: shell |
| 132 |
|
| 133 |
/usr/*/lemonldap-ng/bin/lemonldap-ng-cli set \ |
| 134 |
samlFederationFiles /etc/lemonldap-ng/metadata/main-sps-renater-metadata.xml |
| 135 |
|
| 136 |
Add your IDP into the federation |
| 137 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 138 |
|
| 139 |
Go to `Renater registration portal <https://federation.renater.fr/registry>`__ and register your IDP on the Renater federation. |
| 140 |
|
| 141 |
Create the SP template |
| 142 |
~~~~~~~~~~~~~~~~~~~~~~ |
| 143 |
|
| 144 |
Declare a template Service Provider in LL::NG configuration that will hold the default settings for all SP of the Renater Federation: |
| 145 |
|
| 146 |
* Keep metadata empty |
| 147 |
* Associate it by setting Options > Federation > Entity identifier to https://federation.renater.fr/ |
| 148 |
* Make required attributes optional in Options > Federation > Required attributes |
| 149 |
|
| 150 |
With configuration CLI: |
| 151 |
|
| 152 |
.. code-block:: shell |
| 153 |
|
| 154 |
/usr/*/lemonldap-ng/bin/lemonldap-ng-cli addKey \ |
| 155 |
samlSPMetaDataOptions/sp-renater samlSPMetaDataOptionsFederationEntityID 'https://federation.renater.fr/' \ |
| 156 |
samlSPMetaDataOptions/sp-renater samlSPMetaDataOptionsFederationRequiredAttributes'optional' |
| 157 |
|
| 158 |
.. tip:: |
| 159 |
|
| 160 |
You can override these settings for a specific SP by creating a new SP in configuration and configuring the Federation EntityID with the value of the SP EntityID. |
| 161 |
|
| 162 |
|
| 163 |
.. |image0| image:: /logos/1renater.png |
| 164 |
:class: align-center |
| 165 |
|