<?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: Yet another LDAP configuraiton question in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264963#M218093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You shouldn't be hacking files below WEB-INF.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 09:11:05 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2011-05-16T09:11:05Z</dc:date>
    <item>
      <title>Yet another LDAP configuraiton question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264961#M218091</link>
      <description>Hi,I'm new to Alfresco, new to LDAP, and new to the forum.&amp;nbsp; I have inherited a broken Alfresco 3.4.d installation from a co-worker, and am trying to get it online.&amp;nbsp; We are running on a hosted system using x86_64 GNU/Linux.&amp;nbsp; OpenLDAP, Crowd, and JIRA are all configured and working, but I have been un</description>
      <pubDate>Fri, 13 May 2011 17:39:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264961#M218091</guid>
      <dc:creator>yosemitesam</dc:creator>
      <dc:date>2011-05-13T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another LDAP configuraiton question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264962#M218092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, 41 views in two days and no responses.&amp;nbsp; Is my question too vague?&amp;nbsp; Too little info?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the original post I've learned a bit about LDAP and slapd, installed Softerra on my Windows machine, and have proved that the LDAP store is accessible.&amp;nbsp; I have DNs that work from Softerra as well as the ldap and slapd -T utility sets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have eliminated the initial LDAP bind error from Alfresco startup by removing the "ldap1:" entry from the authentication chain;&amp;nbsp; I noted it was blowing up on that entry, so my chain is now defined as "authentication.chain=ldap", and no error occurs at bind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when users attempt to log in to Alfresco, it throws an invalid login exception, even when the user specifies the correct password:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;21:50:28,268 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 04150001 Login failed&lt;BR /&gt;org.springframework.extensions.webscripts.WebScriptException: 04150001 Login failed&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.repo.web.scripts.bean.AbstractLoginBean.login(AbstractLoginBean.java:75)&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;SPAN&gt;I tried several user names with several "known good" passwords, and they all failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried different values in ldap.authentication.userNameFormat.&amp;nbsp; The initial value, which was set when I took over, used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ldap.authentication.userNameFormat=cn=%s,dc=machine,dc=company,dc=com&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I found that regular users need to include "ou=Users," to get authenticated by "ldapsearch", for instance, so I modified the string to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ldap.authentication.userNameFormat=cn=%s,ou=Users,dc=machine,dc=company,dc=com&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I also tried removing the escapes from the Principal definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;from&lt;BR /&gt;ldap.synchronization.java.naming.security.principal=cn\=Manager,dc\=machine,dc\=company,dc\=com&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;ldap.synchronization.java.naming.security.principal=cn=Manager,dc=machine,dc=company,dc=com&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;To clarify:&amp;nbsp; The Manager CN can log in with the indicated DN, while users must specify the "ou=Users" piece.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that my slapd server is very picky about DNs.&amp;nbsp; If I don't specify the entire DN for the user, as indicated above - in that exact order, even - it fails to authenticate.&amp;nbsp; I don't know if this is normal or not, but it seems it should allow partial qualification, eg, -Dcn=user,dc=company,dc=com.&amp;nbsp; Not in my case, anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any event, I still cannot log into Alfresco, and I'm fresh out of ideas as to what to look for next.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;– Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 22:20:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264962#M218092</guid>
      <dc:creator>yosemitesam</dc:creator>
      <dc:date>2011-05-15T22:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another LDAP configuraiton question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264963#M218093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You shouldn't be hacking files below WEB-INF.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 09:11:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264963#M218093</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-05-16T09:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another LDAP configuraiton question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264964#M218094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You shouldn't be hacking files below WEB-INF.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks, but that's not real helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As stated in the original, I'm new at this, and am trying to work with a configuration I inherited from someone.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried moving the definitions to the alfresco-global.properties file and it had no effect, so I moved them back to where I found them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;– Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 14:49:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264964#M218094</guid>
      <dc:creator>yosemitesam</dc:creator>
      <dc:date>2011-05-16T14:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another LDAP configuraiton question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264965#M218095</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;SPAN&gt;I am new as well but should not&amp;nbsp; these settings be in /opt/alfresco/tomcat/shared/classes/alfresco.global.properties ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties I have set: &lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;# The default authentication chain&lt;BR /&gt;authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap1:ldap&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;/CODE&gt;&lt;/PRE&gt;In /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap/ldap-authentication.properties &lt;BR /&gt;&lt;BR /&gt;– Sam&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 13:51:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/yet-another-ldap-configuraiton-question/m-p/264965#M218095</guid>
      <dc:creator>sydwellz</dc:creator>
      <dc:date>2011-06-02T13:51:54Z</dc:date>
    </item>
  </channel>
</rss>

