Re: Connection fails on one system in a address range allowed to connect - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Connection fails on one system in a address range allowed to connect
Date
Msg-id 3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at
Whole thread Raw
In response to Connection fails on one system in a address range allowed to connect  ("Johnson, Bruce E - (bjohnson)" <Johnson@pharmacy.arizona.edu>)
Responses Re: Connection fails on one system in a address range allowed to connect
List pgsql-general
On Tue, 2023-11-21 at 23:27 +0000, Johnson, Bruce E - (bjohnson) wrote:
> DBI connect('dbname=webdata;host=dhbpostgres.pharmacy.arizona.edu;port=5432','trav',...) failed: FATAL:  password
authenticationfailed for user "trav" 
> FATAL:  no pg_hba.conf entry for host "150.135.124.50", user "trav", database "webdata", no encryption at
./pg_test.plline 8. 
>
> The pg_hba.conf on the server includes this which should encompass all systems in this VLAN
>
> # external 'OldMTM' site range
> hostssl all all 150.135.124.0/25 password
>
> Anywhere else that I should look for a cause?

"no encryption" does not match a "hostssl" entry.

Either add "sslmode=require" to the connection string, or use a "hostnossl" entry.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Vijaykumar Patil
Date:
Subject: General support on postgres replication
Next
From: Ron Johnson
Date:
Subject: Re: PITR