[Geoserver-users] layers.properties

Hi, I was change my version 1.6.5 to 1.7.3 of geoserver for use the layers.properties because I have a webservices private, only is 1 shape, the I was modify my file users.properties, and I created a new user and a new role. And the file layers.properties I was add the new lines, then I was probe this service with gvsig 1.1.2 and arcgis 9.2 and never watch this server, What do I need do for use this server or send my user and pass for see this server??

could you helpme??

Thanks

pd. add the text from my files properties

layers.properties
..r=*
..w=NO_ONE
sf..r=ROLE_PRUEBA
sf.
.w=ROLE_PRUEBA

users.properties
prueba1=prueba,ROLE_PRUEBA

···

Arturo Juárez Lima

“*Cuando quieres realmente una cosa todo el Universo conspira para ayudarte a conseguirla”-*Paulo Coelho

Hi Arturo,

GeoServer uses basic authentication so the client or whatever is sending requests needs to set the appropriate http "Authorization" header which follows the form: Basic + <base64 encoded username + pass>. So something like:

setHeader( "Authorization", "Basic " + Base64.encode(username+":"+password) )

-Justin

Arturo Juàrez wrote:

Hi, I was change my version 1.6.5 to 1.7.3 of geoserver for use the layers.properties because I have a webservices private, only is 1 shape, the I was modify my file /*users.properties, */and I created a new user and a new role. And the file /*layers.properties*/ I was add the new lines, then I was probe this service with gvsig 1.1.2 and arcgis 9.2 and never watch this server, What do I need do for use this server or send my user and pass for see this server??

could you helpme??

Thanks

pd. add the text from my files properties

*layers.properties
**.*.r=*
*.*.w=NO_ONE
sf.*.r=ROLE_PRUEBA
sf.*.w=ROLE_PRUEBA

*users.properties
*prueba1=prueba,ROLE_PRUEBA

--

/*Arturo Juárez Lima*/

“/Cuando quieres realmente una cosa todo el Universo conspira para ayudarte a conseguirla”-//Paulo Coelho/

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

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

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

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

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Justin and thanks for your answer, I was probe with my web of geoserver and when I was write the user prueba1 really is working, but when I am probe with the arcgis or gvsig or udig for add the webservice , I don’t find the part where write the user prueba1 for showme the service sf., I can see all the others but the shape sf. not.
if can use of this form (with user and pass) a webservice??
Justin Deoliveira escribió:

···

Arturo Juárez Lima

“*Cuando quieres realmente una cosa todo el Universo conspira para ayudarte a conseguirla”-*Paulo Coelho

Hi Arturo,

GeoServer uses basic authentication so the client or whatever is sending requests needs to set the appropriate http “Authorization” header which follows the form: Basic + <base64 encoded username + pass>. So something like:

setHeader( “Authorization”, “Basic " + Base64.encode(username+”:"+password) )

-Justin

Arturo Juàrez wrote:

Hi, I was change my version 1.6.5 to 1.7.3 of geoserver for use the layers.properties because I have a webservices private, only is 1 shape, the I was modify my file /*users.properties, */and I created a new user and a new role. And the file /layers.properties/ I was add the new lines, then I was probe this service with gvsig 1.1.2 and arcgis 9.2 and never watch this server, What do I need do for use this server or send my user and pass for see this server??

could you helpme??

Thanks

pd. add the text from my files properties

layers.properties
**.
.r=*
..w=NO_ONE
sf..r=ROLE_PRUEBA
sf.
.w=ROLE_PRUEBA

*users.properties
*prueba1=prueba,ROLE_PRUEBA

/Arturo Juárez Lima/

“/Cuando quieres realmente una cosa todo el Universo conspira para ayudarte a conseguirla”-//Paulo Coelho/





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

Arturo Juàrez ha scritto:

Hi Justin and thanks for your answer, I was probe with my web of geoserver and when I was write the user /prueba1/ really is working, but when I am probe with the arcgis or gvsig or udig for add the webservice , I don't find the part where write the user /prueba1 /for showme the service sf.*, I can see all the others but the shape sf.* not.
if can use of this form (with user and pass) a webservice??

That's because GeoServer defaults to HIDE mode, whilst you
want CHALLENGE mode. See the security subsystem guide:
http://geoserver.org/display/GEOSDOC/2.6+Security+subsystem,
look for "mode=HIDE|CHALLENGE|MIXED".

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I've been using the OGR2OGR WFS extension with good success. Could a similar thing be done for WCS and GDALTranslate? This would open up a large number of raster output formats, plus ending up as a Zip file for easier download.

Thanks!
Roger

Roger Bedell ha scritto:

I've been using the OGR2OGR WFS extension with good success. Could a similar thing be done for WCS and GDALTranslate? This would open up a large number of raster output formats, plus ending up as a Zip file for easier download.

Yep, it could be done, seems like a good idea actually. Can you open
a feature request on jira.codehaus.org?

You can have a look at the OGR2OGR extension sources here:
http://svn.codehaus.org/geoserver/branches/1.7.x/src/extension/ogr/

The code needed would be somewhat similar, thought plugging into WCS output format is harder (but if you want to try, I can open a proper
extension point for WCS output formats).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea,
It has been added to Jira. Seems like a lot of gain for not much pain.
Not sure I can do it very easily though, but I'll be glad to test it.

Roger

--------------------------------------------------
From: "Andrea Aime" <aaime@anonymised.com>
Sent: Thursday, March 26, 2009 1:00 PM
To: "Roger Bedell" <roger@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] WCS GdalTranslate Extension?

Roger Bedell ha scritto:

I've been using the OGR2OGR WFS extension with good success. Could a similar thing be done for WCS and GDALTranslate? This would open up a large number of raster output formats, plus ending up as a Zip file for easier download.

Yep, it could be done, seems like a good idea actually. Can you open
a feature request on jira.codehaus.org?

You can have a look at the OGR2OGR extension sources here:
http://svn.codehaus.org/geoserver/branches/1.7.x/src/extension/ogr/

The code needed would be somewhat similar, thought plugging into WCS output format is harder (but if you want to try, I can open a proper
extension point for WCS output formats).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Andrea,
It has been added to Jira. Seems like a lot of gain for not much pain.
Not sure I can do it very easily though, but I'll be glad to test it.

Roger

--------------------------------------------------
From: "Andrea Aime" <aaime@anonymised.com>
Sent: Thursday, March 26, 2009 1:00 PM
To: "Roger Bedell" <roger@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] WCS GdalTranslate Extension?

Roger Bedell ha scritto:

I've been using the OGR2OGR WFS extension with good success. Could a similar thing be done for WCS and GDALTranslate? This would open up a large number of raster output formats, plus ending up as a Zip file for easier download.

Yep, it could be done, seems like a good idea actually. Can you open
a feature request on jira.codehaus.org?

You can have a look at the OGR2OGR extension sources here:
http://svn.codehaus.org/geoserver/branches/1.7.x/src/extension/ogr/

The code needed would be somewhat similar, thought plugging into WCS output format is harder (but if you want to try, I can open a proper
extension point for WCS output formats).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks Andrea, I was prube with UDIG and work with out problem, but in gvsig was send me error and never was ask me to user.
are you know the reason of why don’t ask me the user??

Thanks again.
Andrea Aime escribió:

···

Arturo Juárez Lima

“*Cuando quieres realmente una cosa todo el Universo conspira para ayudarte a conseguirla”-*Paulo Coelho

Arturo Juàrez ha scritto:

Hi Justin and thanks for your answer, I was probe with my web of geoserver and when I was write the user /prueba1/ really is working, but when I am probe with the arcgis or gvsig or udig for add the webservice , I don’t find the part where write the user /prueba1 /for showme the service sf., I can see all the others but the shape sf. not.
if can use of this form (with user and pass) a webservice??

That’s because GeoServer defaults to HIDE mode, whilst you
want CHALLENGE mode. See the security subsystem guide:
http://geoserver.org/display/GEOSDOC/2.6+Security+subsystem,
look for “mode=HIDE|CHALLENGE|MIXED”.

Cheers
Andrea

Arturo Juàrez ha scritto:

Thanks Andrea, I was prube with UDIG and work with out problem, but in gvsig was send me error and never was ask me to user.
are you know the reason of why don't ask me the user??

I guess gvSig cannot handle HTTP basic authentication then.
uDig, Google Earth work fine, afaik also MapInfo and
ArcGis do.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

ok, I this moment I’m finish my probe with arcgis 9.2 but neither display the shape, only showme the name from the shape, when I check on the shape don’t display nothing
Andrea Aime escribió:

···

Arturo Juárez Lima

“*Cuando quieres realmente una cosa todo el Universo conspira para ayudarte a conseguirla”-*Paulo Coelho

Arturo Juàrez ha scritto:

Thanks Andrea, I was prube with UDIG and work with out problem, but in gvsig was send me error and never was ask me to user.
are you know the reason of why don’t ask me the user??

I guess gvSig cannot handle HTTP basic authentication then.
uDig, Google Earth work fine, afaik also MapInfo and
ArcGis do.

Cheers
Andrea

Andrea Aime wrote:

Arturo Juàrez ha scritto:

Thanks Andrea, I was prube with UDIG and work with out problem, but in
gvsig was send me error and never was ask me to user.
are you know the reason of why don't ask me the user??

I guess gvSig cannot handle HTTP basic authentication then.
uDig, Google Earth work fine, afaik also MapInfo and
ArcGis do.

OpenJUMP supports HTTP basic authentication, also over https (nightly build only, until version 1.3 is published). There is no dialog for credentials, though, but they must be given in WMS connection URL. Maybe gvSIG is using the same method.

-Jukka Rahkonen-