[GeoNode-users] Issue with admin authentication

Alessio Fabiani alessio.fabiani at geo-solutions.it
Wed Jul 12 23:25:14 PDT 2017


As stated in the documentation, GeoServer still has its own internal users.

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.

Regards,

Alessio Fabiani

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

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.

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.

On Wed, Jul 12, 2017 at 2:09 PM, Annalisa Schiavon <
annalisa.schiavon at gmail.com> wrote:

> I add that if I run this command:
>
> $ curl http://localhost/api/users/admin
>
> I get:
> {"users": []}
>
> The other cmd:
>
> curl http://localhost/api/adminRole
> curl http://localhost/api/users
> curl http://localhost/api/roles
>
> are ok.
>
> I attach the last lines of geoserver.log
>
> I've migrated from geonode 2.4 to geonode 2.6.
> I've changed the geoserver data dir coping the original 2.9 and than
> replacing these directories from my geoserver 2.7:
>
>    - data
>    - layergroups
>    - legendsamples
>    - styles
>    - workspace
>
> Thanks for any reply
> Annalisa
>
>
> 2017-07-12 12:48 GMT+02:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>
> :
>
>> Hi all.
>> I've followed this doc because I had some problems with permissions on
>> layers: http://docs.geonode.org/en/master/tutorials/admin/geoserver_
>> geonode_security/index.html .
>>
>> My geonode superuser is "*geonode*", so I access Geoserver with geonode
>> and setted geonode REST role service as Active role service in Security
>> settings.
>>
>> After doing this, I can no more login in Geoserver with *admin* user.
>> Unfortunately, I made a "updatelayer" with --remove-deleted option and
>> this deleted all my layers from geonode. In geoserver there are all layers.
>>
>> 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).
>>
>> I hope that after restoring geonode DB and doing "geonode migrate
>> --fake-initial" I'll return to my situation of yesterday.
>> But how should I set Security settings?
>>
>> Thanks
>> Annalisa
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170713/56e0fbe1/attachment-0001.html>


More information about the geonode-users mailing list