[Geoserver-users] How to avoid security filter chain file being overwrite during server start ?

Hi All,
I have a requirement wherein I want to add few entries (Configure filter chain) in geoserver’s security config file located at geoserver/data/security/config.xml. I know this can be done from UI by navigating to “Authentication” link.

But I want to configure this in “geoserver/data/security/config.xml” file directly and create a war file. So that this settings are available when war is exploded and server comes up.

Currently I see that this config file is re-written when the war is exploded. Is there any way I can prevent this and avoid my settings being over written ?

Appreciate your response,

Thanks in advance,
Ravi

Hi Ravi,

the war file is just a zip file. You can delete the config.xml and insert
your new config.xml (obviously at the same place) and distribute this war
file.
No need to recompile the entire thing.

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-avoid-security-filter-chain-file-being-overwrite-during-server-start-tp5075656p5075716.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

The config file may be rewritten when GeoServer is started the first time and your

GEOSERVER_DATA_DIR/security directory is from a previous major version. Migration code is triggered if you switch from

2.1.x to 2.2.x
2.2.x to 2.3.x
2.3.x to 2.4.x

Cheers
Christian

···

On Tue, Sep 3, 2013 at 5:55 AM, cmaul <Christian.Maul@anonymised.com> wrote:

Hi Ravi,

the war file is just a zip file. You can delete the config.xml and insert
your new config.xml (obviously at the same place) and distribute this war
file.
No need to recompile the entire thing.

Cheers

Christian



Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813

View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-avoid-security-filter-chain-file-being-overwrite-during-server-start-tp5075656p5075716.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Learn the latest–Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

DI Christian Mueller MSc (GIS), MSc (IT-Security)
OSS Open Source Solutions GmbH

Thanks Christian for the response. This is what I am doing. exploding the
geoserver war for first time making my changes and recreating the war.

Regards,
Ravi

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-avoid-security-filter-chain-file-being-overwrite-during-server-start-tp5075656p5078050.html
Sent from the GeoServer - User mailing list archive at Nabble.com.