<?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: authentification LDAP sans UID dans le DN in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181429#M134559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bonjour, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Il serait judicieux de préciser quelle version d'Alfresco vous utilisez. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Votre question n'est pas extrêmement claire, mais à mon avis, ce qui peut vous aider c'est le 'search and bind', c'est à dire : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# If not set, an LDAP query involving ldap.synchronization.personQuery and ldap.synchronization.userIdAttributeName will&lt;BR /&gt;# be performed to resolve the DN dynamically. This allows directories to be structured and doesn't require the user ID to&lt;BR /&gt;# appear in the DN.&lt;BR /&gt;ldap.authentication.userNameFormat=uid\=%s,ou\=person,dc\=test,dc\=alfresco,dc\=com&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Autrement dit, il vous est possible en laissant vide userNameFormat de résoudre le DN de l'utilisateur qui cherche à se logger en effectuant, préalablement au login, une requête combinant &lt;/SPAN&gt;&lt;EM&gt; ldap.synchronization.personQuery&lt;/EM&gt;&lt;SPAN&gt; et &lt;/SPAN&gt;&lt;EM&gt;ldap.synchronization.userIdAttributeName&lt;/EM&gt;&lt;SPAN&gt; pour déterminer le DN à partir de cette requête. Bien entendu, celle-ci ne doit retourner qu'un seul résultat. Cela permet également de récuperer des utilisateurs situés dans plusieurs OU de même niveau hiérarchique disjoints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2011 10:01:31 GMT</pubDate>
    <dc:creator>rguinot</dc:creator>
    <dc:date>2011-10-19T10:01:31Z</dc:date>
    <item>
      <title>authentification LDAP sans UID dans le DN</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181428#M134558</link>
      <description>Bonjour,Est-il possible de s'authentifier par LDAP sans que l'UID ne fasse partie du DN.J'arrive à me connecter avec un LDAP contenant l'UID dans le DN, mais pas lorsque c'est un simple attibut et que le DN est constitué du CN.Merci d'avance !</description>
      <pubDate>Tue, 18 Oct 2011 14:55:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181428#M134558</guid>
      <dc:creator>rjarry</dc:creator>
      <dc:date>2011-10-18T14:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: authentification LDAP sans UID dans le DN</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181429#M134559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bonjour, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Il serait judicieux de préciser quelle version d'Alfresco vous utilisez. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Votre question n'est pas extrêmement claire, mais à mon avis, ce qui peut vous aider c'est le 'search and bind', c'est à dire : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# If not set, an LDAP query involving ldap.synchronization.personQuery and ldap.synchronization.userIdAttributeName will&lt;BR /&gt;# be performed to resolve the DN dynamically. This allows directories to be structured and doesn't require the user ID to&lt;BR /&gt;# appear in the DN.&lt;BR /&gt;ldap.authentication.userNameFormat=uid\=%s,ou\=person,dc\=test,dc\=alfresco,dc\=com&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Autrement dit, il vous est possible en laissant vide userNameFormat de résoudre le DN de l'utilisateur qui cherche à se logger en effectuant, préalablement au login, une requête combinant &lt;/SPAN&gt;&lt;EM&gt; ldap.synchronization.personQuery&lt;/EM&gt;&lt;SPAN&gt; et &lt;/SPAN&gt;&lt;EM&gt;ldap.synchronization.userIdAttributeName&lt;/EM&gt;&lt;SPAN&gt; pour déterminer le DN à partir de cette requête. Bien entendu, celle-ci ne doit retourner qu'un seul résultat. Cela permet également de récuperer des utilisateurs situés dans plusieurs OU de même niveau hiérarchique disjoints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 10:01:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181429#M134559</guid>
      <dc:creator>rguinot</dc:creator>
      <dc:date>2011-10-19T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: authentification LDAP sans UID dans le DN</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181430#M134560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Merci pour votre réponse. j'avais déjà vu une réponse de vous sur ce même sujet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vous avez effectivement mieux reformulé ma question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Je suis en version Alfresco Lab 3 stable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mon souci est que je ne parviens pas à m'authentifier même en ne positionnant pas l'attibut ldap.authentication.userNameFormat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Voici mon log ldap (openldap) : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: &amp;gt;&amp;gt;&amp;gt; slap_listener(ldap:///)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: connection_get(29): got connid=104989 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: connection_read(29): checking for input on id=104989 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: ber_get_next on fd 29 failed errno=11 (Resource temporarily unavailable) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: do_bind &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: &amp;gt;&amp;gt;&amp;gt; dnPrettyNormal: &amp;lt;${ldap.authentication.userNameFormat}&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: bind: invalid dn (${ldap.authentication.userNameFormat}) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: send_ldap_result: conn=104989 op=0 p=3 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: send_ldap_response: msgid=1 tag=97 err=34 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: connection_get(29): got connid=104989 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: connection_read(29): checking for input on id=104989 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: ber_get_next on fd 29 failed errno=0 (Success) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: connection_closing: readying conn=104989 sd=29 for close &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oct 21 14:17:56 ldap1 slapd[5722]: connection_close: conn=104989 sd=-1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Je ne vois pas passer le login saisi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Voici les fichiers de configuration : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap-authentication.properties :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.authentication.java.naming.provider.url=ldap://xx.xx.x.xx:389&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.authentication.java.naming.security.authentication=simple&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#ldap.authentication.java.naming.security.principal=reader&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#ldap.authentication.java.naming.security.credentials=secret&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.authentication.escapeCommasInBind=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.authentication.escapeCommasInUid=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap-synchronisation.properties :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronization.active=false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronization.java.naming.security.principal=cn=myaccount,o=myorg,c=fr,o=people,dc=societe,dc=com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronization.personQuery=(objectclass=person)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.personSearchBased=dc=roullier,dc=com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.userIdAttributeName=uid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.userFirstNameAttributeName=givenName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.userLastNameAttributeName=sn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.userEmailAttributeName=mail&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.userOrganizationalIdAttributeName=o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.defaultHomeFolderProvider=personalHomeFolderProvider&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.groupQuery=(objectclass=groupOfNames)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.groupSearchBase=dc=roullier,dc=com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.groupIdAttributeName=cn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.groupType=groupOfNames&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.personType=inetOrgPerson&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.groupMemberAttributeName=member&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.import.person.cron=0 0 * * * ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.import.group.cron=0 30 * * * ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronisation.import.group.clearAllChildren=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cordialement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 12:42:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181430#M134560</guid>
      <dc:creator>rjarry</dc:creator>
      <dc:date>2011-10-21T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: authentification LDAP sans UID dans le DN</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181431#M134561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Il ne semble pas y avoir le search avant le bind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:44:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181431#M134561</guid>
      <dc:creator>rjarry</dc:creator>
      <dc:date>2011-10-21T14:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: authentification LDAP sans UID dans le DN</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181432#M134562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ceci s'applique aux versions 3.2 et supérieurs. Sauf erreur, vous êtes en 3.0. Il faudrait migrer en version plus récente pour profiter de cette fonctionnalité. Voir &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/General_Upgrade_Process" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/General_Upgrade_Process&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 16:28:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181432#M134562</guid>
      <dc:creator>rguinot</dc:creator>
      <dc:date>2011-10-21T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: authentification LDAP sans UID dans le DN</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181433#M134563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Merci beaucoup pour cette information. Je suis bien en 3.0 (3.0.0 stable 1526 schema 100). Je vais donc envisager une migration…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cordialement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 15:56:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentification-ldap-sans-uid-dans-le-dn/m-p/181433#M134563</guid>
      <dc:creator>rjarry</dc:creator>
      <dc:date>2011-10-24T15:56:23Z</dc:date>
    </item>
  </channel>
</rss>

