Re: [Geoserver-users] Revert auth changes via CLI

2022-05-10 Thread Jody Garnett
 In the future you are advised to setup and enable logging in as the "root"
user. This should be step 1 whenever working on security :)

https://docs.geoserver.org/latest/en/user/security/root.html

You may be able to edit the data directory by hand to enable logging in as
root.
--
Jody Garnett


On May 10, 2022 at 10:02:46 AM, Alexandre Gacon 
wrote:

> If your aim is only to have the admin login working again, I would do a
> backup of the data_dir, start a brand new installation and copy back the
> data_dir again except for the security folder.
>
> alexandre
>
> Le mar. 10 mai 2022 à 17:58, Tom Chadwin 
> a écrit :
>
>> Hello
>>
>> After experimenting with JDBC and LDAP authentication, user/group
>> services, and role services, I can no longer get admin access to the
>> web admin interface (presumably by failing to set the correct ADMIN
>> role, or something similar).
>>
>> Is there a moderately easy way to reconfigure Geoserver via its config
>> files to disable/reconfigure each/any of these which I've configured
>> in the web admin interface:
>>
>> - JDBC authentication
>> - JDBC user/group service
>> - JDBC role service
>>
>> I've delving in /var/lib/tomcat9/webapps/geoserver/data/security, but
>> I haven't quite found what I need yet.
>>
>> Many thanks
>>
>> Tom
>>
>> --
>> --
>> Sign up to our mailing list for updates on news, products, conferences,
>> events and training
>>
>> Astun Technology Ltd, t:+44 1372 744 009 contact us
>> online 
>> web:
>> astuntechnology.com  > > twitter:@astuntech
>> 
>>
>>
>> iShare - enterprise geographic
>> intelligence platform
>> 
>>
>> GeoServer,
>> PostGIS and QGIS training 
>> Support 
>>
>>
>>
>> Company registration
>> no. 5410695. Registered in England and Wales. Registered office: 120
>> Manor
>> Green Road, Epsom, Surrey, KT19 8LN VAT no. 864201149.
>>
>>
>>
>> ___
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Revert auth changes via CLI

2022-05-10 Thread Alexandre Gacon
If your aim is only to have the admin login working again, I would do a
backup of the data_dir, start a brand new installation and copy back the
data_dir again except for the security folder.

alexandre

Le mar. 10 mai 2022 à 17:58, Tom Chadwin  a
écrit :

> Hello
>
> After experimenting with JDBC and LDAP authentication, user/group
> services, and role services, I can no longer get admin access to the
> web admin interface (presumably by failing to set the correct ADMIN
> role, or something similar).
>
> Is there a moderately easy way to reconfigure Geoserver via its config
> files to disable/reconfigure each/any of these which I've configured
> in the web admin interface:
>
> - JDBC authentication
> - JDBC user/group service
> - JDBC role service
>
> I've delving in /var/lib/tomcat9/webapps/geoserver/data/security, but
> I haven't quite found what I need yet.
>
> Many thanks
>
> Tom
>
> --
> --
> Sign up to our mailing list for updates on news, products, conferences,
> events and training
>
> Astun Technology Ltd, t:+44 1372 744 009 contact us
> online 
> web:
> astuntechnology.com   twitter:@astuntech
> 
>
>
> iShare - enterprise geographic
> intelligence platform
> 
>
> GeoServer,
> PostGIS and QGIS training 
> Support 
>
>
>
> Company registration
> no. 5410695. Registered in England and Wales. Registered office: 120 Manor
> Green Road, Epsom, Surrey, KT19 8LN VAT no. 864201149.
>
>
>
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] Revert auth changes via CLI

2022-05-10 Thread Tom Chadwin
Hello

After experimenting with JDBC and LDAP authentication, user/group
services, and role services, I can no longer get admin access to the
web admin interface (presumably by failing to set the correct ADMIN
role, or something similar).

Is there a moderately easy way to reconfigure Geoserver via its config
files to disable/reconfigure each/any of these which I've configured
in the web admin interface:

- JDBC authentication
- JDBC user/group service
- JDBC role service

I've delving in /var/lib/tomcat9/webapps/geoserver/data/security, but
I haven't quite found what I need yet.

Many thanks

Tom

-- 
-- 
Sign up to our mailing list for updates on news, products, conferences, 
events and training

Astun Technology Ltd, t:+44 1372 744 009 contact us 
online 
web: 
astuntechnology.com   twitter:@astuntech 



iShare - enterprise geographic 
intelligence platform 


GeoServer, 
PostGIS and QGIS training 
Support 



Company registration 
no. 5410695. Registered in England and Wales. Registered office: 120 Manor 
Green Road, Epsom, Surrey, KT19 8LN VAT no. 864201149.



___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-10 Thread Giuseppe Falcone
I use importer rest api.
So:
step 1: POST   /geoserver/rest/imports (specifying target workspace and
target datastore) to obtain an importID
step2: POST/geoserver/rest/imports//tasks (passing zip file
into body) to obtain a taskID (zip is uploaded into geoserver data dir and
is unzipped)
step3: PUT  /geoserver/rest/imports//tasks//target
to reset the target store for given taskID
step4: POST/geoserver/rest/imports/ to execute import

This sequence of operations create a table named as passed shapefile into
given workspace/datastore;
if a table with same name already exists, created table is renamed
appending number.

If between step2 and step3 I execute PUT
geoserver/rest/imports//tasks/
passing
{
  "layer": {
"name": "layer1",
"title": "layer1"
  }
}
I could rename layer on geoserver with a different name than that of the
table.

If between step2 and step3 I execute PUT
geoserver/rest/imports//tasks/
passing
{
  "task": {
 "updateMode": "APPEND"
  }
}
I could append data into existing table (named as uploaded shapefile)

I can't find a way to insert data from uploaded shapefile shape.shp into a
table which is called tableA (with same fields obviously)

It's possible?
Thanks

Giuseppe




Il giorno mar 10 mag 2022 alle ore 06:33 Jody Garnett <
jody.garn...@gmail.com> ha scritto:

> You may also consider using the resource rest api to upload the file, and
> the the importer rest api in ingest (it offers greater control as Ian
> suggests).
>
> The upload you found determines a unique table name based on the provided
> content, so for your shapefile this is based on the filename.
>
> The file is here
> https://github.com/geoserver/geoserver/blob/main/src/restconfig/src/main/java/org/geoserver/rest/catalog/DataStoreFileController.java
>  if
> you wish to troubleshoot.
>
> // does the feature type already exist in the target?
> try {
> targetDataStore.getSchema(featureTypeName);
> } catch (Exception e) {
> LOGGER.info(
> featureTypeName
> + " does not exist in data store "
> + storeName
> + ". Attempting to create it");
>
> // schema does not exist, create it by first
> creating an instance
> // of the source datastore and copying over its
> schema
>
> targetDataStore.createSchema(sourceDataStore.getSchema(featureTypeName));
> sourceDataStore.getSchema(featureTypeName);
> }
>
> --
> Jody Garnett
>
>
> On May 9, 2022 at 10:34:22 AM, Giuseppe Falcone <
> falcone.giuse...@gmail.com> wrote:
>
>> Hi
>> thanks for the response.
>> I'm building a web application that must have this function.
>> From browser user upload a shapefile e I put into a db table.
>> I think REST API are perfect for this purpose.
>>
>> Giuseppe
>>
>> Il giorno lun 9 mag 2022 alle ore 19:22 Ian Turton 
>> ha scritto:
>>
>>> I'm not sure that you need to involve geoserver in this, Ogr2ogr would
>>> be quicker and easier to append a shapefile to a database. The GeoServer
>>> rest api is for creating data stores and layers etc not individual data
>>> management.
>>>
>>> Alternatively you might be able to use the importer extension to do this
>>> but I've not used that in anger
>>>
>>>
>>> Ian
>>>
>>> On Mon, 9 May 2022, 17:25 Giuseppe Falcone, 
>>> wrote:
>>>
 Hi to all
 I want with geoserver REST API put a shapefile into an existing postgis
 table.
 I know how to load a shapefile into a postgis database, but I don't
 know how I could indicate a specific table in which append data.
 I Have a shapefile named tableA.shp; it's possible put it's data into a
 postgis table named tableB?
 Thanks a lot

 Giuseppe

 ___
 Geoserver-users mailing list

 Please make sure you read the following two resources before posting to
 this list:
 - Earning your support instead of buying it, but Ian Turton:
 http://www.ianturton.com/talks/foss4g.html#/
 - The GeoServer user list posting guidelines:
 http://geoserver.org/comm/userlist-guidelines.html

 If you want to request a feature or an improvement, also see this:
 https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

>>> ___
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer 

Re: [Geoserver-users] ImageIO Cache Memory Threshold error/warning

2022-05-10 Thread Russ Hore
Hi Jody,

I set it to 80% and the error no longer occurs.
BUT I have upgraded to 2.20.4 since then.

I will let you know if I see it again.

Many thanks

Russ

> On 10 May 2022, at 05:14, Jody Garnett  wrote:
> 
> That looks like it is set, do you want to try changing the value to 80% just 
> to confirm it is having an effect?
> --
> Jody Garnett
> 
> 
> On Oct 12, 2021 at 7:04:44 AM, Russ Hore  > wrote:
>> 
>> 
>>> On 12 Oct 2021, at 14:49, Simone Giannecchini 
>>> >> > wrote:
>>> 
>>> Please, 
>>> post a screenshot of that page.
>>> 
>>> Regards,
>>> Simone Giannecchini
>>> ==
>>> GeoServer Professional Services from the experts!
>>> Visit http://bit.ly/gs-services  for more 
>>> information.
>>> ==
>>> Ing. Simone Giannecchini
>>> @simogeo
>>> Founder/Director GeoSolutions Italy
>>> President GeoSolutions USA
>>> 
>>> phone: +39 0584 962313
>>> fax: +39 0584 1660272
>>> mob:   +39  333 8128928
>>> 
>>> http://www.geosolutionsgroup.com 
>>> http://twitter.com/geosolutions_it 
>>> 
>>> ---
>>> This email is intended only for the person or entity to which it is 
>>> addressed and may contain information that is privileged, confidential or 
>>> otherwise protected from disclosure. We remind that - as provided by 
>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this 
>>> e-mail or the information herein by anyone other than the intended 
>>> recipient is prohibited. If you have received this email by mistake, please 
>>> notify us immediately by telephone or e-mail.
>>> 
>>> 
>>> On Tue, Oct 12, 2021 at 3:31 PM Russ Hore >> > wrote:
>>> Thanks.
>>> 
>>> I don't see the error on that page but if I go to the Tile Caching, I see 
>>> the error on the Caching Defaults, Tile Layers and Disk Quota pages.
>>> 
>>> Russ
>>> 
>>> 
>>> 
>>> 
>>> 
 On 12 Oct 2021, at 13:51, Simone Giannecchini 
 >>> > wrote:
 
 Hi Russ,
 the screenshot above is from the wrong page, you need to go to Settings -> 
 Image Processing, see below:
 
 
 Regards,
 Simone Giannecchini
 ==
 GeoServer Professional Services from the experts!
 Visit http://bit.ly/gs-services  for more 
 information.
 ==
 Ing. Simone Giannecchini
 @simogeo
 Founder/Director GeoSolutions Italy
 President GeoSolutions USA
 
 phone: +39 0584 962313
 fax: +39 0584 1660272
 mob:   +39  333 8128928
 
 http://www.geosolutionsgroup.com 
 http://twitter.com/geosolutions_it 
 
 ---
 This email is intended only for the person or entity to which it is 
 addressed and may contain information that is privileged, confidential or 
 otherwise protected from disclosure. We remind that - as provided by 
 European Regulation 2016/679 “GDPR” - copying, dissemination or use of 
 this e-mail or the information herein by anyone other than the intended 
 recipient is prohibited. If you have received this email by mistake, 
 please notify us immediately by telephone or e-mail.
 
 
 On Tue, Oct 12, 2021 at 12:39 PM Russ Hore >>> > wrote:
 I am running the GS 2.20-RC on Ubuntu 20.04 under Tomcat9 
 
 Server has 64Gb RAM/24 cores (It is an old Mac Pro)
 
 Java is
 openjdk version "11.0.11" 2021-04-20
 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
 OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed 
 mode, sharing)
 
 I am seeing an erorr/warning when I go to Disk Quota
 
 
 
 As far as I can see I have the cache threshold set.
 
 
 
 I see the same error/warning when I view the Caching Defaults, Tile Layers 
 screen.
 
 I am not sure if this happened with the current, non-RC version.
 
 Has anybody seen this before?
 
 Russ
 ___
 Geoserver-users mailing list
 
 Please make sure you read the following two resources before posting to 
 this list:
 - Earning your support instead of buying it, but Ian Turton: 
 http://www.ianturton.com/talks/foss4g.html#/ 
 
 - The GeoServer user list posting guidelines: 
 http://geoserver.org/comm/userlist-guidelines.html 
 
 
 If you want to request a feature or an improvement, also see this: