pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Johnson, Bruce E - (bjohnson) <Johnson@pharmacy.arizona.edu>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Connection fails on one system in a address range allowed to connect
Date: Wed, 22 Nov 2023 10:39:03 +0100
Message-ID: <3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at> (raw)
In-Reply-To: <55C98A3B-4D99-4F39-8A2D-31D25E456F2B@arizona.edu>
References: <55C98A3B-4D99-4F39-8A2D-31D25E456F2B@arizona.edu>

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 authentication failed for user "trav"
> FATAL:  no pg_hba.conf entry for host "150.135.124.50", user "trav", database "webdata", no encryption at ./pg_test.pl line 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





view thread (4+ messages)  latest in thread

Message-ID: <3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at>
Permalink:  ../3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at/
Also on:    postgresql.org/message-id/3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, Johnson@pharmacy.arizona.edu
  Subject: Re: Connection fails on one system in a address range allowed to connect
  In-Reply-To: <3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at>
  References: <55C98A3B-4D99-4F39-8A2D-31D25E456F2B@arizona.edu> <3dc1190d1060e406be112ed5da581cf514af7a32.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox