<?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 Kerberos setup with cluster and load balancer in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/kerberos-setup-with-cluster-and-load-balancer/m-p/284077#M237207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm setting up a 4.2.4 cluster with two nodes (node1.example.comn, node2.example.com). Each have alfresco and share running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Users access an apache front-end that acts as a load balancer (alfresco.example.com) using Apache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The goal is to have users SSO when accessing the loadbalancer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been able to create the ticket and get SSO working when accessing the nodes directly, both for http and cifs. What I still struggle with is to getting SSO working from load balancer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I have tried is in java.login.config&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Alfresco {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; com.sun.security.auth.module.Krb5LoginModule sufficient;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;AlfrescoCIFS {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; com.sun.security.auth.module.Krb5LoginModule required&lt;BR /&gt;&amp;nbsp;&amp;nbsp; storeKey=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; useKeyTab=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; doNotPrompt=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; keyTab="/etc/cifsnode1.keytab"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; principal="cifs/node1.example.com";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;AlfrescoHTTP&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; com.sun.security.auth.module.Krb5LoginModule required&lt;BR /&gt;&amp;nbsp;&amp;nbsp; storeKey=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; useKeyTab=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; doNotPrompt=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; keyTab="/etc/httpnode1.keytab"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; principal="HTTP/node1.example.com";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;ShareHTTP&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; com.sun.security.auth.module.Krb5LoginModule required&lt;BR /&gt;&amp;nbsp;&amp;nbsp; storeKey=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; useKeyTab=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; doNotPrompt=true&lt;BR /&gt;&amp;nbsp;&amp;nbsp; keyTab="/etc/sharehttp.keytab"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; principal="HTTP/alfresco.example.com";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;com.sun.net.ssl.client {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; com.sun.security.auth.module.Krb5LoginModule sufficient;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;other {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; com.sun.security.auth.module.Krb5LoginModule sufficient;&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;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;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When I got Share SSO working I hade the same keytab for Share as for repo HTTP. When involving the load balancer I tested if it would work if I use a third account fro ShareHTTP (HTTP/alfresco.example.com) as this matches the url users access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;In share-config-custom.xml, there is in the Kerberos config section the setting endpoint-spn, this should be the principal for node1/node2, i.e. &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:HTTP/node1.example.com@EXAMPLE.COM" rel="nofollow noopener noreferrer"&gt;HTTP/node1.example.com@EXAMPLE.COM&lt;/A&gt;&lt;SPAN&gt; if I am correct?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any specific setting that needs to be in apache configuration for it to forward kerberos tickets? The load balancer uses ajp.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 08:45:51 GMT</pubDate>
    <dc:creator>loftux</dc:creator>
    <dc:date>2015-06-10T08:45:51Z</dc:date>
    <item>
      <title>Kerberos setup with cluster and load balancer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/kerberos-setup-with-cluster-and-load-balancer/m-p/284077#M237207</link>
      <description>I'm setting up a 4.2.4 cluster with two nodes (node1.example.comn, node2.example.com). Each have alfresco and share running.Users access an apache front-end that acts as a load balancer (alfresco.example.com) using Apache.The goal is to have users SSO when accessing the loadbalancer.I've been able t</description>
      <pubDate>Wed, 10 Jun 2015 08:45:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/kerberos-setup-with-cluster-and-load-balancer/m-p/284077#M237207</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2015-06-10T08:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos setup with cluster and load balancer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/kerberos-setup-with-cluster-and-load-balancer/m-p/284078#M237208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Loftux, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you seen anything to make you think that Apache is not forwarding on the Kerberos ticket?&amp;nbsp; Generally the Kerberos ticket is included in the request from a client in the "Authentication" header, as part of a GSSAPI token, so I don't know if there's anything in Apache that strips this - I assume you're not using auth_mod_kerb since you want Alfresco to do the authentication?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if you can authenticate with the Alfresco Explorer app using SSO through Apache?&amp;nbsp; I just ask because Share delegates back to Alfresco for Kerrberos authentication and that extra layer of complexity can often have its own issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd be very interested in if you find a solution for this as I'm in a similar situation currently as well (using hardware load balancer instead of Apache), looking into how we can get&amp;nbsp; SSO to work properly through the load balancer.&amp;nbsp; Similarly we had successfully tested in single server environments and in clustered environments going directly to the server, but we're still having issues with SSO through the balancer.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a hunch that our problem at least is to do with aligning the SPNs &amp;amp; associated keytabs on both hosts with the name of the load balanced service rather than the host names, but I'm not sure.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 15:36:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/kerberos-setup-with-cluster-and-load-balancer/m-p/284078#M237208</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2015-09-01T15:36:03Z</dc:date>
    </item>
  </channel>
</rss>

