<?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: shibboleth problem on one host in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318001#M5002</link>
    <description>&lt;P&gt;You should try to see if the http header is not stripped or removed by any network stuff.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2013 12:15:57 GMT</pubDate>
    <dc:creator>Arnaud_Kervern</dc:creator>
    <dc:date>2013-10-15T12:15:57Z</dc:date>
    <item>
      <title>shibboleth problem on one host</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318000#M5001</link>
      <description>&lt;P&gt;I have 3 hosts where I'm trying to set up shibboleth and nuxeo; -dev, -stg, and production.&lt;/P&gt;
&lt;P&gt;It works on -dev and -stg, it does not work on production.  On production, it looks like it is doing something similar to &lt;A href="http://answers.nuxeo.com/questions/4149/shibboleth-configuration"&gt;a  report last October&lt;/A&gt; where nuxeo is not able to pick up the shibboleth information from the request and end up in an endless loop.&lt;/P&gt;
&lt;P&gt;#DNS difference between -dev/-stg and production&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;nuxeo-dev.example.org&lt;/CODE&gt; and &lt;CODE&gt;nuxeo-stg.example.org&lt;/CODE&gt; are DNS &lt;CODE&gt;A&lt;/CODE&gt; records to the IP address of the VM.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;nuxeo.example.org&lt;/CODE&gt;, my production VM, is a DNS &lt;CODE&gt;CNAME&lt;/CODE&gt; to &lt;CODE&gt;xyz-nuxeo-p01.example.edu&lt;/CODE&gt;.  This is the only difference I can see between production and the other environments.  Production is run by a different group, and getting them to change the DNS setup to match -dev/-stg is not an option.&lt;/P&gt;
&lt;P&gt;#when it fails&lt;/P&gt;
&lt;P&gt;If I turn up &lt;CODE&gt;log4j.xml&lt;/CODE&gt; org.nuxeo.ecm.platform.ui.web.auth to TRACE; on production I see:&lt;/P&gt;
&lt;PRE&gt;
2013-10-14 20:25:50,610 DEBUG [ajp-bio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Entering Nuxeo Authentication Filter
2013-10-14 20:25:50,611 DEBUG [ajp-bio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Principal not found inside Request via getUserPrincipal
2013-10-14 20:25:50,611 DEBUG [ajp-bio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Try getting authentication from cache
2013-10-14 20:25:50,612 DEBUG [ajp-bio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIdentification using plugin SHIB_AUTH
2013-10-14 20:25:50,612 DEBUG [ajp-bio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIdentification using plugin BASIC_AUTH
2013-10-14 20:25:50,612 DEBUG [ajp-bio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] user/password not found in request, try into identity cache
&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;
Entering Nuxeo Authentication Filter
Principal not found inside Request via getUserPrincipal
Try getting authentication from cache
Trying to retrieve userIdentification using plugin SHIB_AUTH
Trying to retrieve userIdentification using plugin BASIC_AUTHuser/password not found in request, try into identity cache
&lt;/PRE&gt;
&lt;P&gt;#when it works&lt;/P&gt;
&lt;P&gt;When it works (tar'ing up the same exact files onto -dev or -stg) the &lt;A href="https://gist.github.com/tingletech/6986346"&gt;TRACE logs&lt;/A&gt; show something like this:&lt;/P&gt;
&lt;PRE&gt;Entering Nuxeo Authentication Filter
Principal not found inside Request via getUserPrincipal
Try getting authentication from cache
Trying to retrieve userIdentification using plugin SHIB_AUTH
[ShibbolethAuthenticationPlugin] Failed to get or create user entry
           ... java.lang.NullPointerException ...
User/Password found as parameter of the request
Exit Nuxeo Authentication filter
Entering Nuxeo Authentication FilterPrincipal not found inside Request via getUserPrincipal
Try getting authentication from cacheuserIdent found in cache, get the Principal from it without reloggin
Principal = Brian.T@example.org
Exit Nuxeo Authentication filter
Entering Nuxeo Authentication FilterPrincipal not found inside Request via getUserPrincipal
Try getting authentication from cacheuserIdent found in cache, get the Principal from it without reloggin
Principal = Brian.T@example.org
Exit Nuxeo Authentication filte
&lt;/PRE&gt;
&lt;P&gt;#what I've tried&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I've tried to edit the &lt;CODE&gt;server.xml&lt;/CODE&gt; for tomcat so that host=nuxeo.example.org&lt;/LI&gt;
&lt;LI&gt;I've tried to set nuxeo.url=http://nuxeo.example.org:8080/nuxeo&lt;/LI&gt;
&lt;LI&gt;I've tried to set &lt;CODE&gt;RequestHeader append nuxeo-virtual-host "https://myDomainName/"&lt;/CODE&gt; and turn &lt;CODE&gt;ProxyPreserveHost On&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;tested on 5.6, 5.7.2, and 5.7.3&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;#what next?
I'm not sure what to try next.  Could the DNS issue be a red herring?   What could account for this different behaviour?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 06:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318000#M5001</guid>
      <dc:creator>Brian_T</dc:creator>
      <dc:date>2013-10-15T06:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: shibboleth problem on one host</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318001#M5002</link>
      <description>&lt;P&gt;You should try to see if the http header is not stripped or removed by any network stuff.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 12:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318001#M5002</guid>
      <dc:creator>Arnaud_Kervern</dc:creator>
      <dc:date>2013-10-15T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: shibboleth problem on one host</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318002#M5003</link>
      <description>&lt;P&gt;with netcat I've confirmed missing headers from the upstream apache&lt;/P&gt;
&lt;PRE&gt;
netcat -vv -l 0.0.0.0 -p 8080
...
Shib-AuthnContext-Decl: 
Shib-Assertion-Count: 
eppn: 
affiliation: 
unscoped-affiliation: 
entitlement: 
targeted-id: 
persistent-id: 
mail: 
Shib-Application-ID: default
REMOTE_USER: 
...
&lt;/PRE&gt;
&lt;P&gt;Seems to be a problem with my IdP.  &lt;CODE&gt;&lt;A href="https://nuxeo.example.org/Shibboleth.sso/Session" target="test_blank"&gt;https://nuxeo.example.org/Shibboleth.sso/Session&lt;/A&gt;&lt;/CODE&gt; shows no attributes passed.&lt;/P&gt;
&lt;P&gt;UPDATE: my IdP confirmed the filter rules were wrong and that they are not sending me the attributes.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 20:03:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/shibboleth-problem-on-one-host/m-p/318002#M5003</guid>
      <dc:creator>Brian_T</dc:creator>
      <dc:date>2013-10-15T20:03:40Z</dc:date>
    </item>
  </channel>
</rss>

