Thanks Christian,

I had tried regular property values and they are NOT supported, but didn’t know 
if there was an additional configuration I had to set.

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
[Description: Description: Description: cid:[email protected]]

From: Christian Mueller [mailto:[email protected]]
Sent: Monday, November 10, 2014 4:13 AM
To: Chris Snider
Cc: '[email protected]' 
([email protected])
Subject: Re: [Geoserver-users] Spring/environment variable property replacement 
in ROLE config.xml

Hi Chris

Property replacements are not supported. I never tried it but I am quite sure.

Cheers
Christian

On Fri, Nov 7, 2014 at 4:26 PM, Chris Snider 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

We have a plug-in for GeoServer that connects GeoServer roles to an RBAC 
service.  Currently, we set up the connection URL required to reach the service 
during initial deployment, which works well.  However, we are switching to a 
service discovery mechanism and need the values to be replaceable at runtime 
with Spring Framework properties or environment variables.

Does the GeoServer security subsystem do property replacements when reading the 
config.xml file?

Example configuration

<rbacroleservice>
  <name>RBAC_ROLE</name>
  <className>com.company.security.RBACRoleService</className>
  <connectURL>${rbac.httpPrefix}://${rbac.ip}:${rbac.port}/</connectURL>
  <adminRoleName>ROLE_GEOADMIN</adminRoleName>
</rbacroleservice>


Thanks,


Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
Direct (719) 452-7257
[Description: Description: Description: cid:[email protected]]


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

_______________________________________________
Geoserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users



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

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to