<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Agreed with Ariel just suggesting to set the baseurl of the geonodeAuthProvider with the public IP of the reverse proxy regardless the use of containers<div><br></div><div>Francesco</div><div><br><div><div><div>Il giorno 30/set/2016, alle ore 16:07, Ariel Nunez <<a href="mailto:ingenieroariel@gmail.com">ingenieroariel@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello Florian,<div><br></div><div>The only way I have been able to reliable reuse login between GeoNode and GeoServer is to put them both under the same reverse proxy (nginx or apache).</div><div><br></div><div>If you access them in different IP addresses the cookies are not shared.</div><div><br></div><div>-a</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 30, 2016 at 4:32 AM, Florian Detsch <span dir="ltr"><<a href="mailto:florian.detsch@staff.uni-marburg.de" target="_blank">florian.detsch@staff.uni-marburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I already posted this issue to the geonode-devel mailing list, with no success so far...<br>
<br>
I am going through the tutorial about 'GeoNode (v2.4) installation on Ubuntu 14.04' (<a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html" rel="noreferrer" target="_blank">http://docs.geonode.org/en/ma<wbr>ster/tutorials/install_and_adm<wbr>in/geonode_install/index.html</a>) in order to setup GeoNode v2.5.x (<a href="https://github.com/GeoNode/geonode/tree/2.5.x" rel="noreferrer" target="_blank">https://github.com/GeoNode/ge<wbr>onode/tree/2.5.x</a>) in an LXD container on Ubuntu 16.04. When running GeoNode and GeoServer in the same container - i.e., with an identical IP address - everything works fine.<br>
<br>
However, my overall goal is to have GeoNode run on one machine, and GeoServer on another. Therefore, I installed GeoServer in a second LXD container just like before. Then, I modified<br>
1. /var/lib/tomcat7/webapps/geose<wbr>rver/WEB-INF/web.xml, changing parameter GEONODE_BASE_URL to the IP address and port of the GeoNode container, and<br>
2. did the same for parameter baseUrl in /var/lib/tomcat7/webapps/geose<wbr>rver/data/security/auth/geonod<wbr>eAuthProvider/config.xml<br>
as described in the tutorial's subsection 'Install GeoServer Application' (<a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html" rel="noreferrer" target="_blank">http://docs.geonode.org/en/ma<wbr>ster/tutorials/install_and_adm<wbr>in/geonode_install/install_geo<wbr>server_application.html</a>). <br>
<br>
Furthermore, in the initial GeoNode container, I modified parameters ProxyPass and ProxyPassReverse in /etc/apache2/sites-available/g<wbr>eonode.conf to match with the new IP address of the GeoServer container (<a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html" rel="noreferrer" target="_blank">http://docs.geonode.org/en/ma<wbr>ster/tutorials/install_and_adm<wbr>in/geonode_install/setup_confi<wbr>gure_httpd.html</a>), and did the same for the OGC_SERVER settings in GeoNode's local_settings.py.<br>
<br>
Now, I can login to GeoNode as admin. When I open the admin menu in the top-right corner and select GeoServer, I am redirected to the desired GeoServer as expected. However, the automatic login - which initially worked when both components ran in the same container - fails, letting me assume that there's something going wrong during the authentication procedure.<br>
<br>
Any advice on that issue would be highly appreciated. In addition, please let me know if further information, log files, etc. are required in order to solve my problem.<br>
<br>
Many thanks in advance,<br>
Florian<br>
<br>
<br>
-- <br>
Florian Detsch (M.Sc. Physical Geography)<br>
Environmental Informatics<br>
Department of Geography<br>
Philipps-Universität Marburg<br>
Deutschhausstraße 12<br>
35032 (parcel post: 35037) Marburg, Germany<br>
<br>
Tel <a href="tel:%2B49%20%280%29%206421%2028-25323" value="+4964212825323" target="_blank">+49 (0) 6421 28-25323</a><br>
<a href="http://umweltinformatik-marburg.de/en/staff/florian-detsch/" rel="noreferrer" target="_blank">http://umweltinformatik-marbur<wbr>g.de/en/staff/florian-detsch/</a><br>
<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/geonode-users</a><br>
</blockquote></div><br></div>
_______________________________________________<br>geonode-users mailing list<br><a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/geonode-users<br></blockquote></div><br></div></div></body></html>