<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shibboleth CRU account in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322333#M9334</link>
    <description>&lt;P&gt;You can have a look at the sample configuration of ShibbolethAuthenticationService&lt;/P&gt;
&lt;P&gt;&lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewExtensionPoint/org.nuxeo.ecm.platform.shibboleth.service.ShibbolethAuthenticationService--config" target="test_blank"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewExtensionPoint/org.nuxeo.ecm.platform.shibboleth.service.ShibbolethAuthenticationService--config&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can define a uid mapping from shib attributes varying according to the idp of the user.&lt;/P&gt;
&lt;P&gt;A configuration could be to map the uid for your idp and a default one using eppn or email.&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 16:45:25 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2017-05-09T16:45:25Z</dc:date>
    <item>
      <title>Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322332#M9333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We're trying to setup Shibboleth Authentication with Nuxeo 6.0 and Renater as wayf.
Our ldap's users are identified with their UID but we would like to allow abroad connexion with the way of the CRU (compte réseau universel).
But CRU account use email adress as key.
How could we configure shibboleth add-on to allow on one part authentication with UID (LDAP) and on the other part authentication with email (CRU accounts) ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 14:27:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322332#M9333</guid>
      <dc:creator>Jean-Michel_HER</dc:creator>
      <dc:date>2017-05-09T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322333#M9334</link>
      <description>&lt;P&gt;You can have a look at the sample configuration of ShibbolethAuthenticationService&lt;/P&gt;
&lt;P&gt;&lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewExtensionPoint/org.nuxeo.ecm.platform.shibboleth.service.ShibbolethAuthenticationService--config" target="test_blank"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.2/viewExtensionPoint/org.nuxeo.ecm.platform.shibboleth.service.ShibbolethAuthenticationService--config&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can define a uid mapping from shib attributes varying according to the idp of the user.&lt;/P&gt;
&lt;P&gt;A configuration could be to map the uid for your idp and a default one using eppn or email.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 16:45:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322333#M9334</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-05-09T16:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322334#M9335</link>
      <description>&lt;P&gt;Hi pibou Bouvret,&lt;/P&gt;
&lt;P&gt;Thank you for your answer, i really appreciate !&lt;/P&gt;
&lt;P&gt;Indeed, i've already tried many configurations but the only one that perform correctly is "default"&lt;/P&gt;
&lt;P&gt;I've read &lt;A href="https://www.esup-portail.org/wiki/pages/viewpage.action?pageId=96633020"&gt;here&lt;/A&gt; that i need to patch ShibbolethAuthenticationPlugin.java to obtain what i expected. (+ fieldMap.put("username", userId);)&lt;/P&gt;
&lt;P&gt;In V6, code extract is:
` public UserIdentificationInfo handleRetrieveIdentity(
HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
if (getService() == null) {
return null;
}&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    String userId = getService().getUserID(httpRequest);
    if (userId == null || "".equals(userId)) {
        return null;
    }
    Session userDir = null;
    try {
        UserManager userManager = Framework.getService(UserManager.class);
        userDir = Framework.getService(DirectoryService.class).open(
                userManager.getUserDirectoryName());
        Map&amp;lt;String, Object&amp;gt; fieldMap = getService().getUserMetadata(
                userManager.getUserIdField(), httpRequest);
        DocumentModel entry = userDir.getEntry(userId);
        if (entry == null) {
            // patch RB :
            fieldMap.put("username", userId);
            // fin patch RB
            userDir.createEntry(fieldMap);
        } else {
            entry.getDataModel(userManager.getUserSchemaName()).setMap(
                    fieldMap);
            userDir.updateEntry(entry);
        }
    } catch (Exception e) {
        log.error("Failed to get or create user entry", e);
    } finally {
        if (userDir != null) {
            try {
                userDir.close();
            } catch (DirectoryException e) {
                log.error("Error while closing directory session", e);
            }
        }
    }

    return new UserIdentificationInfo(userId, userId);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;`&lt;/P&gt;
&lt;P&gt;In 8.2 version, ShibbolethAuthenticationPlugin.java is quite different.
Sadly i can't understand how it operate.&lt;/P&gt;
&lt;P&gt;Even though i can't manage multiple keys in v 6.0, if i choose &lt;DEFAULT&gt;mail&lt;/DEFAULT&gt;, my CRU user log in Nuxeo with his account (an account was created before for him, since we're in multi directory mode), but this user can't retrieve folders where he have rights.&lt;/P&gt;
&lt;P&gt;If you can give me some advices ...&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 13:49:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322334#M9335</guid>
      <dc:creator>Jean-Michel_HER</dc:creator>
      <dc:date>2017-05-10T13:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322335#M9336</link>
      <description>&lt;P&gt;Don't you have the EPPN transmitted by the CRU IDP ? It should according to https&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 15:01:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322335#M9336</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-05-10T15:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322336#M9337</link>
      <description>&lt;P&gt;https&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 15:05:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322336#M9337</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-05-10T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322337#M9338</link>
      <description>&lt;P&gt;Bonjour Pibou,&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 15:34:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322337#M9338</guid>
      <dc:creator>Jean-Michel_HER</dc:creator>
      <dc:date>2017-05-10T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322338#M9339</link>
      <description>&lt;P&gt;According to the Renater docs, the EPPN is provided if it is required by your SP&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 15:54:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322338#M9339</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-05-10T15:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shibboleth CRU account</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322339#M9340</link>
      <description>&lt;P&gt;Hi Pibou, merci,&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 15:45:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-cru-account/m-p/322339#M9340</guid>
      <dc:creator>Jean-Michel_HER</dc:creator>
      <dc:date>2017-05-11T15:45:19Z</dc:date>
    </item>
  </channel>
</rss>

