Quote:
Originally Posted by dysonsimmons
Can you give me some basic instructions so I can reproduce the issue?
|
You may need to install the LibreOffice PostgreSQL driver:
here. Then, open LibreOffice Base. It will ask you if you want to 'Connect to an existing database' (third option in the dialog). On my system, the PostgreSQL driver is at the bottom of the drop-down list. Click next and type in the appropriate URL details - for me, they are 'postgresql://localhost:5432/ABPA'. Click next and you will be asked for username and (optionally) password. Fill in your details and click 'Test Connection' - this is where my system fails. The actual error message is 'An error has occurred: Error connecting to the server: FATAL: password authentication failed for user "postgres"'
Quote:
Originally Posted by dysonsimmons
I still want to help you sort it out if I can!
|
Thanks a million for sticking with me!
Quote:
Originally Posted by dysonsimmons
You should be able to access using psql or pgAdminIII on the same machine postgres is on using a username and password (you want to use username and password correct?) with the following change:<snip>
If you want access from another machine (suggested by the IP range you provided) you definitely don't want /16. That is a class b netmask of 65k hosts. Most home setups would be /24 (255.255.255.0). If you have a look at the computer you want to access postgres from (assuming there is no nat in the middle) for its network connections netmask you will be able to determine what to put in pg_hba.conf.
|
Yes, I want to use passwords and I want to allow computers on the local network (192.168.0.*) to connect to pg.
I have changed my pg_hba.conf to set "host all all 192.168.0.0/24 trust" and that much still works. However, I am getting a feeling there must be some kind of 'security server' missing from my system, because changing 'trust' to 'md5' (or 'peer', or 'password', or ident ...) still breaks my ability to connect using PgAdminIII. Even changing to '127.0.0.1/32 all all md5' I can connect via psql - without being prompted for a password - but PgAdminII returns the error.
Given the above, I am unsure if I am fighting a PostgreSQL problem or a Fedora26 security problem.
To summarise:
with 'host all all 127.0.0.1/32 md5' I can connect with psql but not PgAdminII or LibreOffice.
with 'host all all 192.168.0.100/24 trust' I can connect with both psql and PgAdminII but not LibreOffice.
with any kind of security other than 'trust' I cannot connect with PgAdminIII.
I cannot connect with LibreOffice using any combination I have tried.
Sigh!