<?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 External authentication and the user id pattern in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/external-authentication-and-the-user-id-pattern/m-p/266348#M219478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We wanted to switch from kerberos to external authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;external.authentication.enabled=true&lt;BR /&gt;external.authentication.proxyHeader=REMOTE_USER&lt;SPAN class="line-numbers-rows"&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;and as long as basic authentication is used on the Apache everything works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I wanted to switch to AuthType Kerberos but I get an Alfresco Explorer - System Error when trying to log in using SSO:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.repo.security.authentication.AuthenticationException: 07190007 Failed to set current user huebner@MY.COMPANY&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get rid of the "@MY.COMPANY"? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;external.authentication.userIdPattern=(^[-a-zA-z0-9\.]*)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; seems to have no effect, no matter what RegEx I use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even trying to resolve the issue on the Apache side via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# Grab the REMOTE_USER apache environment variable for HTTP forwarding&lt;BR /&gt;&amp;nbsp; RewriteEngine On&lt;BR /&gt;&amp;nbsp; RewriteCond %{LA-U:REMOTE_USER} ([-a-zA-z0-9\.]+)[@]*.*&lt;BR /&gt;&amp;nbsp; RewriteRule . - [E=RU:%1]&lt;BR /&gt;# Set the REMOTE_USER and x-user to the authenticated username&lt;BR /&gt;&amp;nbsp; RequestHeader set REMOTE_USER %{RU}e&lt;BR /&gt;&amp;nbsp; RequestHeader set x-user %{RU}e&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;Has no visible effect…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I doing anything wrong or have I missed something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 13:09:05 GMT</pubDate>
    <dc:creator>florianhuebner</dc:creator>
    <dc:date>2011-08-19T13:09:05Z</dc:date>
    <item>
      <title>External authentication and the user id pattern</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-authentication-and-the-user-id-pattern/m-p/266348#M219478</link>
      <description>HelloWe wanted to switch from kerberos to external authentication.I have set external.authentication.enabled=trueexternal.authentication.proxyHeader=REMOTE_USER‍‍and as long as basic authentication is used on the Apache everything works fine.Now I wanted to switch to AuthType Kerberos but I get an A</description>
      <pubDate>Fri, 19 Aug 2011 13:09:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-authentication-and-the-user-id-pattern/m-p/266348#M219478</guid>
      <dc:creator>florianhuebner</dc:creator>
      <dc:date>2011-08-19T13:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: External authentication and the user id pattern</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-authentication-and-the-user-id-pattern/m-p/266349#M219479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a Remote User filter that I had to put into Tomcat to make it work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its the "RemoteUserFilter" tool on this page: &lt;/SPAN&gt;&lt;A href="http://www.switch.ch/aai/support/tools/index.html" rel="nofollow noopener noreferrer"&gt;http://www.switch.ch/aai/support/tools/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just had to put the jar file into the WEB-INF/lib folder and add the following two snippets into the web.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Filter definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp; &amp;lt;filter&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter-name&amp;gt;KerberosRemoteUserFilter&amp;lt;/filter-name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter-class&amp;gt;ch.SWITCH.aai.filters.KerberosRemoteUserFilter&amp;lt;/filter-class&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/filter&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and the filter mapping itself&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp; &amp;lt;filter-mapping&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter-name&amp;gt;KerberosRemoteUserFilter&amp;lt;/filter-name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/filter-mapping&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It probably would have been enough if I would have placed it before the Global Authentication Filter with the "/faces/*" url pattern but I wanted to be sure so I put it right at the start of the chain.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 06:19:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-authentication-and-the-user-id-pattern/m-p/266349#M219479</guid>
      <dc:creator>florianhuebner</dc:creator>
      <dc:date>2011-08-24T06:19:14Z</dc:date>
    </item>
  </channel>
</rss>

