Hi,
I've got 4 databased in my Postgres instance:
dev/test/prod are geodatabase enabled with the geodb repositories in a sde schema in each database. postgres database is the standard db that comes with installation.
I've got three users:
- postgres (standard user comes with installation)
- sde (dba of dev/test/prod)
- editor (creates tables)
All these user can connect via APRO without any problem.
Now I created via APRO another user 'agsread' (using the connection to the dev db) which works fine. In pgAdmin4 I can use 'agsread' to connect to any of the four db.
In the pg_hba file I allow the 'agsread' user to connect to the dev db.
So when I now try to connect via APRO, the DBMS logs say that
agsread@postgres FATAL: no pg_hba.conf entry for host "aaa.bbb.ccc.dd", user "agsread", database "postgres", SSL off
That's true, because it has no entry for the postgres db (which is technically correct, because 'agsread' shall only connect to dev db).
So my question is: Why does this happen? Isn't possible to restrict user access that way? What would be a solution/workaround?
Thanks!