Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have configured the Drupal user/role plugin, but am unable to authenticate with Geoserver when logging in via Cartaro. I get the following error:
Failed to authenticate you with GeoServer. Some map services won't be available.
How can I troubleshoot? I.e. how can I find what is misconfigured, not working properly, etc?
Comments
Comment #1
brylie CreditAttribution: brylie commentedI added the provider to the provider chain and things work. Please add this information to the documentation page:
http://cartaro.org/documentation/using-drupal-users-and-roles-geoserver
Comment #2
augustus.kling CreditAttribution: augustus.kling commentedI think I don't get the problem. The linked page already says:
Then a screenshot follows with the provider chain configuration.
Why and where do you recommend the extra sentence?
Comment #3
mtoscano CreditAttribution: mtoscano commentedI followed carefully the instruction on http://cartaro.org/documentation/using-drupal-users-and-roles-geoserver but when I arrive at the last step (Activate the authentication provider by moving it into the list of active providers) I receive the error: java.lang.RuntimeException: java.lang.RuntimeException: Could not load workspace administrators and if I go to Server Status it says: Oops, something went wrong... and then
Installing Cartaro I used the default Geoserver user (admin/geoserver) and I used this user also to connect to the Drupal database creating the new Authentication Provider and the User Group Service.
Comment #4
mtoscano CreditAttribution: mtoscano commentedIf I try to login back in Geoserver it now says Invalid username/password combination!
Comment #5
azuledu CreditAttribution: azuledu commentedyou can log into GeoServer with the root account:
http://docs.geoserver.org/latest/en/user/security/root.html
Comment #6
mtoscano CreditAttribution: mtoscano commentedFixed. I was using admin Drupal user creating the new Authentication Provider and the User Group Service instead of the Postgres database user.
Comment #7
mtoscano CreditAttribution: mtoscano commentedComment #8
augustus.kling CreditAttribution: augustus.kling commentedFor the reference in case somebody else experience the same problem. The following is from the provided stack trace and basically tells that it was tried to access PostgreSQL with a user admin that does not exist. The fix is to provide the correct PostgreSQL user name when setting up the user/group service in GeoServer.