<?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: Is External authentication subsystem safe? How does it work? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257444#M210574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you mrogers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a clear answer, thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll take some time to update the wiki I think this must be made very very clear in the wiki.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What about protecting with CAS only "/faces/jsp/login.jsp", would it be enough ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 08:45:21 GMT</pubDate>
    <dc:creator>iblanco</dc:creator>
    <dc:date>2010-11-18T08:45:21Z</dc:date>
    <item>
      <title>Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257442#M210572</link>
      <description>It migth sound like a stupid question but I'm using it for CAS (through apache's mod_auth_cas) authentication and there are some points I don't understand.I do understand that Apache's httpd server negotiates the session with CAS after checking it's certificate, so I do understand that Apache can ge</description>
      <pubDate>Tue, 16 Nov 2010 19:18:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257442#M210572</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-11-16T19:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257443#M210573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you will need to set up firewalls to prevent "rogue" access to your instance of Alfresco. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The external authentication subsystem makes alfresco accept an external authentication token so you need to make sure that its not possible to abuse or subvert that trust.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 20:41:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257443#M210573</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-11-17T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257444#M210574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you mrogers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a clear answer, thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll take some time to update the wiki I think this must be made very very clear in the wiki.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What about protecting with CAS only "/faces/jsp/login.jsp", would it be enough ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 08:45:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257444#M210574</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-11-18T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257445#M210575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally I changed the Location Apache directive and instead used LocationMatch:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;LocationMatch ^/alfresco/(?!service/|service$|webdav/|webdav$|s/|s$).*&amp;gt;&lt;BR /&gt; …your config here&lt;BR /&gt;&amp;lt;/LocationMatch&amp;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;BR /&gt;&lt;SPAN&gt;That should protect whole /alfresco/ urls except &lt;/SPAN&gt;&lt;EM&gt;service, s&lt;/EM&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;EM&gt;webdav&lt;/EM&gt;&lt;SPAN&gt;. Probably I miss some other exceptions but adding them would be trivial and forgetting one just means that yo overprotect something, not that you miss something.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 13:57:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257445#M210575</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-12-03T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257446#M210576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_With_mod_auth_cas#Comparison_of_the_two_strategies" rel="nofollow noopener noreferrer"&gt;The Wiki&lt;/A&gt;&lt;SPAN&gt; says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The direct strategy is easier to set up and have one network hop less than the indirectstrategy (and that hop involves encryption using certs). It should in theory thus be a bit faster than the indirect strategy. However, to use the direct strategy you need to make sure that yoru alfresco server is well locked down, i.e. that no direct connection to port 8080 are possible. In other words, you have to enforce that all connections have to go through apache. This can be achieved easily with a firewall rule (like iptables on Linux). If the setup is not well locked, then a malicious user could log as any user just forging the auth header with the user he wants to log in as.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;At least for me, limiting port 8080 to localhost was not enough. When I accessed alfresco via Apache with AJP, Apache still passed the X-Alfresco-Remote-User header to Alfresco and thus made it possible for any user to authenticate as admin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, I've now added the following setting in Apache:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;LocationMatch ^/alfresco/(?!service/|service$|webdav/|webdav$|s/|s$).*&amp;gt;&lt;BR /&gt;&amp;nbsp; […]&lt;BR /&gt;&amp;nbsp; RequestHeader unset X-Alfresco-Remote-User&lt;BR /&gt;&amp;nbsp; […]&lt;BR /&gt;&amp;lt;/LocationMatch&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be safe. I think the Wiki should be adjusted to account for this issue. Or did I miss something and there is an easier way to lock down Alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 12:32:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257446#M210576</guid>
      <dc:creator>goldmar</dc:creator>
      <dc:date>2011-06-19T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257447#M210577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;goldmar, I didn't have to deal with Share when I made this configuration, but what you comment sound reasonable to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I propose you to update the wiki yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 07:12:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257447#M210577</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2011-06-21T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257448#M210578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm a bit confused right now… if you don't use Share, then you don't need to do all the steps written in the Wiki. You only need to protect /alfresco with mod_auth_cas and that's it. You don't need to deal with certificates and you don't have to (or even should not!) make Alfresco Explorer accept the X-Alfresco-Remote-User header because the authentification in Explorer works via the HttpServletRequest.getRemoteUser() method (which is not related to the header modification). You only need to accept the header in Explorer if you want to use proxy authentification (e.g. if you use Share, then Share is the proxy because you authenticate to Share and Share forwards the authentication to Explorer).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 11:14:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257448#M210578</guid>
      <dc:creator>goldmar</dc:creator>
      <dc:date>2011-06-21T11:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257449#M210579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's it I only protect Apache with mod_auth_cas, but you have to make sure that Tomcat or AJP is not exposed directly for example through 8080 port. If I expose AJP port or tomcat's 8080 port publicly someone else could "chain" their apache with their mod_auth_cas configuration to MY alfresco, isn't it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 12:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257449#M210579</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2011-06-21T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is External authentication subsystem safe? How does it work?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257450#M210580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah, you're right - I did not think about it. I've probably been too focused on the header issue :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 13:02:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-external-authentication-subsystem-safe-how-does-it-work/m-p/257450#M210580</guid>
      <dc:creator>goldmar</dc:creator>
      <dc:date>2011-06-21T13:02:48Z</dc:date>
    </item>
  </channel>
</rss>

