<abbrtitle="LemonLDAP::NG">LL::NG</abbr> can use SAML2 to get user identity and grab some attributes defined in user profile on its Identity Provider (IDP). In this case, <abbrtitle="LemonLDAP::NG">LL::NG</abbr> acts like an SAML2 Service Provider (SP).
</p>
<p>
Several IDPs are allowed, in this case the user will choose the IDP he wants. You can preselect IDP with an IDP resolution rule.
</p>
<p>
For each IDP, you can configure attributes that are collected. Some can be mandatory, so if they are not returned by IDP, the session will not open.
<divclass="notetip"><abbrtitle="LemonLDAP::NG">LL::NG</abbr> can also act as <ahref="idpsaml.html"class="wikilink1"title="documentation:2.0:idpsaml">SAML IDP</a>, that allows one to interconnect two <abbrtitle="LemonLDAP::NG">LL::NG</abbr> systems.
<divclass="notetip">As passwords will not be managed by <abbrtitle="LemonLDAP::NG">LL::NG</abbr>, you can disable <ahref="portalmenu.html#menu_modules"class="wikilink1"title="documentation:2.0:portalmenu">menu password module</a>.
They are available at the EntityID <abbrtitle="Uniform Resource Locator">URL</abbr>, by default: <ahref="http://auth.example.com/saml/metadata"class="urlextern"title="http://auth.example.com/saml/metadata"rel="nofollow">http://auth.example.com/saml/metadata</a>. You can also use <ahref="http://auth.example.com/saml/metadata/sp"class="urlextern"title="http://auth.example.com/saml/metadata/sp"rel="nofollow">http://auth.example.com/saml/metadata/sp</a> to have only SP related metadata.
<h3class="sectionedit8"id="register_partner_identity_provider_on_lemonldapng">Register partner Identity Provider on LemonLDAP::NG</h3>
<divclass="level3">
<p>
In the Manager, select node <code><abbrtitle="Security Assertion Markup Language">SAML</abbr> identity providers</code> and click on <code>Add <abbrtitle="Security Assertion Markup Language">SAML</abbr> IDP</code>. The IDP name is asked, enter it and click OK.
</p>
</div>
<h4id="metadata">Metadata</h4>
<divclass="level4">
<p>
You must register IDP metadata here. You can do it either by uploading the file, or get it from IDP metadata <abbrtitle="Uniform Resource Locator">URL</abbr> (this require a network link between your server and the IDP):
<liclass="level1"><divclass="li"><strong>Key name</strong>: name of the key in LemonLDAP::NG session (for example “uid” will then be used as $uid in access rules)</div>
</li>
<liclass="level1"><divclass="li"><strong>Mandatory</strong>: if set to On, then session will not open if this attribute is not given by IDP.</div>
<liclass="level1"><divclass="li"><strong>Resolution Rule</strong>: rule that will be applied to preselect an IDP for a user. You have access to all environment variable <em>(like user <abbrtitle="Internet Protocol">IP</abbr> address)</em> and all session keys.</div>
<liclass="level1"><divclass="li"><strong>NameID format</strong>: force NameID format here (email, persistent, transient, etc.). If no value, will use first NameID Format activated in metadata.</div>
</li>
<liclass="level1"><divclass="li"><strong>Force authentication</strong>: set ForceAuthn flag in authentication request</div>
</li>
<liclass="level1"><divclass="li"><strong>Passive authentication</strong>: set IsPassive flag in authentication request</div>
</li>
<liclass="level1"><divclass="li"><strong>Allow proxied authentication</strong>: allow an authentication response to be issued from another IDP that the one we register (proxy IDP). If you disallow this, you should also disallow direct login form IDP, because proxy restriction is set in authentication requests.</div>
</li>
<liclass="level1"><divclass="li"><strong>Allow login from IDP</strong>: allow a user to connect directly from an IDP link. In this case, authentication is not a response to an issued authentication request, and we have less control on conditions.</div>
<liclass="level1"><divclass="li"><strong>Requested authentication context</strong>: this context is declared in authentication request. When receiving the request, the real authentication context will be mapped to an internal authentication level (see <ahref="samlservice.html#authentication_contexts"class="wikilink1"title="documentation:2.0:samlservice">how configure the mapping</a>), that you can check to allow or deny session creation.</div>
<liclass="level1"><divclass="li"><strong>Allow <abbrtitle="Uniform Resource Locator">URL</abbr> as RelayState</strong>: Set to On if the RelayState value sent by IDP is the <abbrtitle="Uniform Resource Locator">URL</abbr> where the user must be redirected after authentication.</div>
</li>
</ul>
</div>
<h5id="session">Session</h5>
<divclass="level5">
<ul>
<liclass="level1"><divclass="li"><strong>Adapt session lifetime</strong>: session lifetime will be adapted from <code>SessionNotOnOrAfter</code> value found in authentication response. It means that if the IDP propose to close session earlier than the default LemonLDAP::NG timeout, the session _utime will be modified so that session is erased at the date indicated by the IDP.</div>
</li>
<liclass="level1"><divclass="li"><strong>Force UTF-8</strong>: this will force UTF-8 conversion of attributes values collected from IDP.</div>
<liclass="level1"><divclass="li"><strong>Store <abbrtitle="Security Assertion Markup Language">SAML</abbr> Token</strong>: allows one to keep <abbrtitle="Security Assertion Markup Language">SAML</abbr> token (assertion) inside user session. Don't enable it unless you need to replay this token on an application.</div>
<liclass="level1"><divclass="li"><strong>Attribute containing user identifier</strong>: set the value of <abbrtitle="Security Assertion Markup Language">SAML</abbr> attribute (“Name”) that should be used as user main identifier ($user). If empty, the NameID content is used.</div>
These options override service signature options (see <ahref="samlservice.html#general_options"class="wikilink1"title="documentation:2.0:samlservice">SAML service configuration</a>).
<liclass="level1"><divclass="li"><strong><abbrtitle="Single Sign On">SSO</abbr> binding</strong>: force binding to use for <abbrtitle="Single Sign On">SSO</abbr> (http-redirect, http-post, etc.)</div>
</li>
<liclass="level1"><divclass="li"><strong>SLO binding</strong>: force binding to use for SLO (http-redirect, http-post, etc.)</div>
</li>
</ul>
<divclass="noteclassic">If no binding defined, the default binding in IDP metadata will be used.
</div>
</div>
<h5id="security">Security</h5>
<divclass="level5">
<ul>
<liclass="level1"><divclass="li"><strong>Encryption mode</strong>: set the encryption mode for this IDP (None, NameID or Assertion).</div>
</li>
<liclass="level1"><divclass="li"><strong>Check time conditions</strong>: set to Off to disable time conditions checking on authentication responses.</div>
</li>
<liclass="level1"><divclass="li"><strong>Check audience conditions</strong>: set to Off to disable audience conditions checking on authentication responses.</div>
<divclass="notetip">The chosen logo must be in Portal icons directory (<code>portal/static/common/icons/</code>). You can set a custom icon by setting the icon file name directly in the field and copy the logo file in portal icons directory