<?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 share external auth header ignored in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306423#M259553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, trying to use external auth with share in 4.2.c with tomcat 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Explorer is working fine, but whenever share trys to login, it requests this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;127.0.0.1 - - [07/Aug/2013:16:52:35 -0400] "GET /alfresco/wcs/touch HTTP/1.1" 302 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;127.0.0.1 - - [07/Aug/2013:16:52:35 -0400] "GET /alfresco/faces/jsp/login.jsp?_alfRedirect=%2Falfresco%2Fwcs%2Ftouch HTTP/1.1" 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;127.0.0.1 - - [07/Aug/2013:16:54:20 -0400] "GET /alfresco/wcs/webframework/content/metadata?user=tomcat HTTP/1.1" 302 - ???c???s() 302&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;127.0.0.1 - - [07/Aug/2013:16:54:20 -0400] "GET /alfresco/faces/jsp/login.jsp?_alfRedirect=%2Falfresco%2Fwcs%2Fwebframework%2Fcontent%2Fmetadata%3Fuser%3Dtomcat HTTP/1.1" 200&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see it ends up with a login redirect. I've been doing some debugging, and have everything setup according to the docs, in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.web.app.servlet.AuthenticationHelper.authenticate() the x-alfresco-remote-user header is there, but seems to be ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 21:31:30 GMT</pubDate>
    <dc:creator>aaron_bru</dc:creator>
    <dc:date>2013-08-07T21:31:30Z</dc:date>
    <item>
      <title>share external auth header ignored</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306423#M259553</link>
      <description>Hi all, trying to use external auth with share in 4.2.c with tomcat 7.Explorer is working fine, but whenever share trys to login, it requests this:127.0.0.1 - - [07/Aug/2013:16:52:35 -0400] "GET /alfresco/wcs/touch HTTP/1.1" 302 127.0.0.1 - - [07/Aug/2013:16:52:35 -0400] "GET /alfresco/faces/jsp/log</description>
      <pubDate>Wed, 07 Aug 2013 21:31:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306423#M259553</guid>
      <dc:creator>aaron_bru</dc:creator>
      <dc:date>2013-08-07T21:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: share external auth header ignored</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306424#M259554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've done quite a lot more debugging on this, here's what I posted on IRC about it: (apparently to myself &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;seems like the problem is in org.alfresco.web.app.servlet.AuthenticationHelper.getRemoteUserMapper(), debug error message "No active remote user mapper.", which the code shows will result in…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;…a redirect to login page. How can I fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.web.app.servlet.DefaultRemoteUserMapper.getRemoteUser() does read the correct header, but then it ignores it for some reason, not sure if this is a bug or not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;looks like its because proxyUserName is alfresco-system instead of null, even though I have external.authentication.proxyUserName=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;How can I set proxyUserName to null?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;I set it to null in the debugger and was able to login successfully, so I know its the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;the value from the config file is not being set into DefaultRemoteUserMapper, the function setProxyHeader in the source&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;…is never called&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aaron-bru&amp;nbsp;&amp;nbsp;&amp;nbsp;hm seems like I have no choice but to modify the code…any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried setting proxyUserName=something but something never shows up in DefaultRemoteUserMapper.proxyUserName Is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/external/external-filter-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;has&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="remoteUserMapper" class="org.alfresco.web.app.servlet.DefaultRemoteUserMapper"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="proxyUserName"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;${external.authentication.proxyUserName}&amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in it, and my tomcat/shared/classes/alfresco/extension/external1/external-authentication.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;has&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.enabled=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.proxyUserName=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.proxyHeader=X-Alfresco-Remote-User&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How come proxyUserName is not being set?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 18:27:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306424#M259554</guid>
      <dc:creator>aaron_bru</dc:creator>
      <dc:date>2013-08-08T18:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: share external auth header ignored</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306425#M259555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Turns out alfresco was ignoring my &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/shared/classes/alfresco/extension/external1/external-authentication.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moved everything to alfresco-global.properties and it worked. My fault for not checking that sooner.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the question still remains why that property file was being ignored, I believe I set it up as the docs indicate. I'm using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;authentication.chain=external1:external,alfrescoNtlm1:alfrescoNtlm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 19:11:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-external-auth-header-ignored/m-p/306425#M259555</guid>
      <dc:creator>aaron_bru</dc:creator>
      <dc:date>2013-08-08T19:11:02Z</dc:date>
    </item>
  </channel>
</rss>

