<div dir="ltr">I don't want to create a different admin user of Geoserver. But "admin" user (the default of Geoserver) is an Administrator if I set in Security settings, "Active role service" = "default". If I set "Active role service" = "geonode REST role service", the "admin" user is no longer an administrator but a common user with no permission.<div>This is my edit user page of admin user, when I set geonode REST role service:</div><div><br></div><div><img src="cid:ii_15d3ad8da218c5e3" alt="Immagine incorporata 1" width="509" height="475"><br></div><div><br></div><div>Is it normal? It's ok?</div><div><br></div><div>Thanks</div><div>Annalisa</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-13 8:25 GMT+02:00 Alessio Fabiani <span dir="ltr"><<a href="mailto:alessio.fabiani@geo-solutions.it" target="_blank">alessio.fabiani@geo-solutions.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As stated in the documentation, GeoServer still has its own internal users.<div><br></div><div>If you want to create an admin different from the default one in GeoServer also which works with basic auth also, you need to create a GeoServer internal user too.</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-1756678857786666891gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Regards,</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Ing. Alessio Fabiani</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">@alfa7691</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Founder/Technical Lead</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoSolutions S.A.S.</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Via di Montramito 3/A</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">55054  Massarosa (LU)</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Italy</span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">phone: <a href="tel:+39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">fax:     <a href="tel:+39%200584%20166%200272" value="+3905841660272" target="_blank">+39 0584 1660272</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">mob:   <a href="tel:+39%20331%20623%203686" value="+393316233686" target="_blank">+39 331 6233686</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/<wbr>geosolutions_it</a></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">------------------------------<wbr>-------------------------</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"> </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</span></p></span></div></div></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Wed, Jul 12, 2017 at 2:09 PM, Annalisa Schiavon <span dir="ltr"><<a href="mailto:annalisa.schiavon@gmail.com" target="_blank">annalisa.schiavon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I add that if I run this command:<div><br><div><div><font face="monospace, monospace">$ curl <a href="http://localhost/api/users/admin" target="_blank">http://localhost/api/users/adm<wbr>in</a></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">I get:</font></div><div><font face="monospace, monospace">{"users": []}</font></div></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">The other cmd:</font></div><div><span style="color:rgb(64,64,64);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px"><br></span></div><div><span style="color:rgb(64,64,64);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px">curl <a href="http://localhost/api/adminRole" target="_blank">http://localhost/api/adminRole</a></span></div><div><span style="color:rgb(64,64,64);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px">curl <a href="http://localhost/api/users" target="_blank">http://localhost/api/users</a></span></div><div><span style="color:rgb(64,64,64);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px">curl <a href="http://localhost/api/roles" target="_blank">http://localhost/api/roles</a></span></div><div><span style="color:rgb(64,64,64);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace"><br></span></div><div><span style="color:rgb(64,64,64)"><font face="arial, helvetica, sans-serif">are ok.</font></span></div><div><span style="color:rgb(64,64,64)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(64,64,64)"><font face="arial, helvetica, sans-serif">I attach the last lines of geoserver.log</font></span></div><div><span style="color:rgb(64,64,64)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(64,64,64)"><font face="arial, helvetica, sans-serif">I've migrated from geonode 2.4 to geonode 2.6.</font></span></div><div><span style="color:rgb(64,64,64)"><font face="arial, helvetica, sans-serif">I've changed the geoserver data dir coping the original 2.9 and than replacing these directories from my geoserver 2.7:</font></span></div><div><ul><li><font color="#404040" face="arial, helvetica, sans-serif">data</font></li><li><font color="#404040" face="arial, helvetica, sans-serif">layergroups</font></li><li><font color="#404040" face="arial, helvetica, sans-serif">legendsamples</font></li><li><font color="#404040" face="arial, helvetica, sans-serif">styles</font></li><li><font color="#404040" face="arial, helvetica, sans-serif">workspace</font></li></ul><font color="#404040" face="arial, helvetica, sans-serif">Thanks for any reply</font></div><span class="m_-1756678857786666891HOEnZb"><font color="#888888"><div><font color="#404040" face="arial, helvetica, sans-serif">Annalisa</font></div><div><font color="#404040" face="arial, helvetica, sans-serif"><br></font></div></font></span></div><div class="m_-1756678857786666891HOEnZb"><div class="m_-1756678857786666891h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-07-12 12:48 GMT+02:00 Annalisa Schiavon <span dir="ltr"><<a href="mailto:annalisa.schiavon@gmail.com" target="_blank">annalisa.schiavon@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all.<div>I've followed this doc because I had some problems with permissions on layers: <a href="http://docs.geonode.org/en/master/tutorials/admin/geoserver_geonode_security/index.html" target="_blank">http://docs.geonode.org/en/mas<wbr>ter/tutorials/admin/geoserver_<wbr>geonode_security/index.html</a> .</div><div><br></div><div><font face="arial, helvetica, sans-serif">My geonode superuser is "<b>geonode</b>", so I access Geoserver with geonode and setted </font><code class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-docutils m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-literal" style="box-sizing:border-box;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;white-space:nowrap;max-width:100%;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">geonode</span> <span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">REST</span> <span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">role</span> <span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">servi<wbr>ce</span></code><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:16px;background-color:rgb(252,252,252)"> </span><span style="color:rgb(64,64,64);background-color:rgb(252,252,252)"><font face="arial, helvetica, sans-serif">as </font></span><code class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-docutils m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-literal" style="box-sizing:border-box;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;white-space:nowrap;max-width:100%;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(231,76,60);overflow-x:auto"><span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">Active</span> <span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">role</span> <span class="m_-1756678857786666891m_-4055728058947374278m_-5306802828677343991gmail-pre" style="box-sizing:border-box">service</span></code> <font face="arial, helvetica, sans-serif">in Security settings. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">After doing this, I can no more login in Geoserver with <b>admin</b> user.</font></div><div><font face="arial, helvetica, sans-serif">Unfortunately, I made a "updatelayer" with --remove-deleted option and this deleted all my layers from geonode. In geoserver there are all layers.<br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">I try to change back Security settings and set it to "default". Now if I make an updatelayers, geonode recreate my layers (but I have to restore my old backups because I lost all metadata and link with the maps).</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">I hope that after restoring geonode DB and doing "geonode migrate --fake-initial" I'll return to my situation of yesterday.</font></div><div><font face="arial, helvetica, sans-serif">But how should I set Security settings?</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks</font></div><span class="m_-1756678857786666891m_-4055728058947374278HOEnZb"><font color="#888888"><div><font face="arial, helvetica, sans-serif">Annalisa</font></div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>