Rakesh,
as explained probably the LayerPreview don’t append the used user so you may have to force its usage setting up permissions.
Cheers,
Carlo
···
2013/10/21 Rakesh Kumar Sharma <rakesh_ks@anonymised.com>
Dear sir,
Waiting for your reply…Thanks and Regards
Rakesh-------- Original Message --------
Subject: Re: [Geoserver-users] Geo server log
Date: Mon, 21 Oct 2013 14:38:32 +0530
From: Rakesh Kumar Sharma rakesh_ks@anonymised.com
To: carlo cancellieri carlo.cancellieri@anonymised.com
References: 525FB2FC.8060806@anonymised.com CAPUhnRZ_iXiYnxpBuHEqLqiJ-YA4zGoAUa=SpKBJnfd-zanLhA@anonymised.com 526139A7.3010805@anonymised.com CAPUhnRaNroTMbvXztMkDUmgtyY3ACdWcDX3dAcw1pC0M+oOdDQ@anonymised.com 52623AEA.90607@anonymised.com 5264DFD3.7020609@anonymised.com CAPUhnRbPVEShGtzcB1YWYNi6qw+5XUFpeBiX3DFM=w=Bm+txTw@anonymised.comDear Sir,
I am logged in through admin but still the username admin is also not showing in that log file deatils.Since admin have all the privilege so I think atleast this information should shown in that file.Thanks and Regards
Rakeshcarlo cancellieri wrote:
Kumar,
as default LayerPreview does not ask for user authentication since all the layer are configured for free access.
looking at the documentation I see:
Remote user The username specified parsed of the request. Only available when request included credentials for authentication. String This probably means that you have to force your client to use authentication on layer request.
Try to setup authentication rules for some layer forcing authorization requests:
http://docs.geoserver.org/stable/en/user/security/layer.htmlThis should add credentials to the request.
Cheers,
Carlo
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
Dott. Carlo Cancellieri
@cancellieric
Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
2013/10/21 Rakesh Kumar Sharma <rakesh_ks@…5931…>
Dear sir,
Waiting for your reply…Thanks and Regards
RakeshRakesh Kumar Sharma wrote:
Dear carlo cancellieri,
yes, I have configured through audit mode only .I am able to get all the information like StartTime, EndTime,TotalTime,RemoteAddr,RemoteHost,Host name but only RemoteUser details is not coming.
I have already included the following line in content.ftl file
${remoteUser!“”}.Thanks and Regards
Rakeshcarlo cancellieri wrote:
Kumar,
How did you configured it?
I suggest to configure it in audit mode, take a look here:
http://docs.geoserver.org/stable/en/user/extensions/monitoring/audit.html#log-files
Cheers,
Carlo
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
Dott. Carlo Cancellieri
@cancellieric
Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
Dott. Carlo Cancellieri
@cancellieric
Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it