<?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 Hitting a wall with LDAP authentication in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/hitting-a-wall-with-ldap-authentication/m-p/140423#M98371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am installing Alfresco in my company. Everthing is working great and even though I had some issues, it didnt take too long to solve them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have a problem that I cant seem to solve. I am trying to allow simple auhtentication with LDAP for my users. Without it Alfresco would be useless since we have way too many users to manually create each account.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I configured the ldap-authentication-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My logs clearly indicate that I am corresponding with the ldap server + I cant login anymore with local users which is the correct behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However it seems that whatever login or password I use from LDAP users, I cant manage to login.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my ldap-authentication-context.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt; &lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;'&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;beans&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– DAO that rejects changes - LDAP is read only at the moment. It does allow users to be deleted with out warnings from the UI. –&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" &amp;gt; &lt;BR /&gt;&amp;lt;property name="allowDeleteUser"&amp;gt; &lt;BR /&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt; &lt;BR /&gt;&amp;lt;/property&amp;gt; &lt;BR /&gt;&amp;lt;/bean&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– LDAP authentication configuration –&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– &lt;BR /&gt;&lt;BR /&gt;You can also use JAAS authentication for Kerberos against Active Directory or NTLM if you also require single sign on from the &lt;BR /&gt;web browser. You do not have to use LDAP authentication to synchronise groups and users from an LDAP store if it supports other &lt;BR /&gt;authentication routes, like Active Directory. &lt;BR /&gt;&lt;BR /&gt;–&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"&amp;gt; &lt;BR /&gt;&amp;lt;property name="LDAPInitialDirContextFactory"&amp;gt; &lt;BR /&gt;&amp;lt;ref bean="ldapInitialDirContextFactory"/&amp;gt; &lt;BR /&gt;&amp;lt;/property&amp;gt; &lt;BR /&gt;&amp;lt;property name="userNameFormat"&amp;gt; &lt;BR /&gt;&amp;lt;!– &lt;BR /&gt;&lt;BR /&gt;This maps between what the user types in and what is passed through to the underlying LDAP authentication. &lt;BR /&gt;&lt;BR /&gt;"%s" - the user id is passed through without modification. &lt;BR /&gt;Used for LDAP authentication such as DIGEST-MD5, anything that is not "simple". &lt;BR /&gt;&lt;BR /&gt;"cn=%s,ou=London,dc=company,dc=com" - If the user types in "Joe Bloggs" the authentricate as "cn=Joe Bloggs,ou=London,dc=company,dc=com" &lt;BR /&gt;Usually for simple authentication. &lt;BR /&gt;&lt;BR /&gt;–&amp;gt; &lt;BR /&gt;&amp;lt;value&amp;gt;uid=%s,ou=***,o=***,c=fr&amp;lt;/value&amp;gt; &lt;BR /&gt;&amp;lt;/property&amp;gt; &lt;BR /&gt;&amp;lt;/bean&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– &lt;BR /&gt;&lt;BR /&gt;This bean is used to support general LDAP authentication. It is also used to provide read only access to users and groups &lt;BR /&gt;to pull them out of the LDAP reopsitory &lt;BR /&gt;&lt;BR /&gt;–&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;bean id="ldapInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl"&amp;gt; &lt;BR /&gt;&amp;lt;property name="initialDirContextEnvironment"&amp;gt; &lt;BR /&gt;&amp;lt;map&amp;gt; &lt;BR /&gt;&amp;lt;!– The LDAP provider –&amp;gt; &lt;BR /&gt;&amp;lt;entry key="java.naming.factory.initial"&amp;gt; &lt;BR /&gt;&amp;lt;value&amp;gt;com.sun.jndi.ldap.LdapCtxFactory&amp;lt;/value&amp;gt; &lt;BR /&gt;&amp;lt;/entry&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– The url to the LDAP server –&amp;gt; &lt;BR /&gt;&amp;lt;!– Note you can use space separated urls - they will be tried in turn until one works –&amp;gt; &lt;BR /&gt;&amp;lt;!– This could be used to authenticate against one or more ldap servers (you will not know which one ….) –&amp;gt; &lt;BR /&gt;&amp;lt;entry key="java.naming.provider.url"&amp;gt; &lt;BR /&gt;&amp;lt;value&amp;gt;ldap://***:50014&amp;lt;/value&amp;gt; &lt;BR /&gt;&amp;lt;/entry&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– The authentication mechanism to use –&amp;gt; &lt;BR /&gt;&amp;lt;!– Some sasl authentication mechanisms may require a realm to be set –&amp;gt; &lt;BR /&gt;&amp;lt;!– java.naming.security.sasl.realm –&amp;gt; &lt;BR /&gt;&amp;lt;!– The available options will depend on your LDAP provider –&amp;gt; &lt;BR /&gt;&amp;lt;entry key="java.naming.security.authentication"&amp;gt; &lt;BR /&gt;&amp;lt;value&amp;gt;simple&amp;lt;/value&amp;gt; &lt;BR /&gt;&amp;lt;/entry&amp;gt; &lt;BR /&gt;&amp;lt;/map&amp;gt; &lt;BR /&gt;&amp;lt;/property&amp;gt; &lt;BR /&gt;&amp;lt;/bean&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&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;/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;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;/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;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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN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AN&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;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;/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;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;Here are my log files concerning LDAP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;12:00:25,918 WARN [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server supports anonymous bind ldap://***:50014&lt;BR /&gt;12:00:25,921 INFO [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not support simple string user ids and invalid credentials at ldap://***:50014&lt;BR /&gt;12:00:25,923 INFO [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not fall back to anonymous bind for a simple dn and password at ldap://***:50014&lt;BR /&gt;&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advices or leads would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings from France&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luda&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2007 14:35:21 GMT</pubDate>
    <dc:creator>luda12</dc:creator>
    <dc:date>2007-09-21T14:35:21Z</dc:date>
    <item>
      <title>Hitting a wall with LDAP authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hitting-a-wall-with-ldap-authentication/m-p/140423#M98371</link>
      <description>Hello, I am installing Alfresco in my company. Everthing is working great and even though I had some issues, it didnt take too long to solve them.Now I have a problem that I cant seem to solve. I am trying to allow simple auhtentication with LDAP for my users. Without it Alfresco would be useless si</description>
      <pubDate>Fri, 21 Sep 2007 14:35:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hitting-a-wall-with-ldap-authentication/m-p/140423#M98371</guid>
      <dc:creator>luda12</dc:creator>
      <dc:date>2007-09-21T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hitting a wall with LDAP authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hitting-a-wall-with-ldap-authentication/m-p/140424#M98372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LDAP simple suthentication uses the DN of the user. Check the DN of the user in an LDAP browser - and confirm you can authenticate with this browser- The DN is likely to be based on CN and not uid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 11:58:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hitting-a-wall-with-ldap-authentication/m-p/140424#M98372</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-10-11T11:58:14Z</dc:date>
    </item>
  </channel>
</rss>

