Re: Connection not allowed because of an error 'Not in pg_hba.conf'

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: "Johnson, Bruce E - (bjohnson)" <Johnson(at)pharmacy(dot)arizona(dot)edu>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Connection not allowed because of an error 'Not in pg_hba.conf'
Date: 2023-09-18 20:00:55
Message-ID: 103d7895-72a6-98ce-87b3-f23307408244@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/18/23 12:45, Johnson, Bruce E - (bjohnson) wrote:
> I am doing some testing trying to migrate some websites from using
> Oracle to Postgres. (Using Perl DBI and DBD::Pg as the connecting
> mechanism)
>
> (Server Environment Postgres 15 running on Ubuntu 22.04, client Rocky
> Linux using the supplied PostgreSQL DBI and DBD::Pg packages)
>
> The error I am getting on the client is:
>
>  password authentication failed for user "trav"
>
> connection to server at "dhbpostgres.pharmacy.arizona.edu"
> (10.128.206.109), port 5432 failed: FATAL:  no pg_hba.conf entry for
> host "10.128.206.109", user "trav", database "webdata", no encryption
>
>
> But I do have an entry that should allow it:
>
> #Internal server mgmt range
>
> hostsslallall10.128.206.0/23 password

I guessing you want that to be:

10.128.206.109/32

or

10.128.206.0/24

> --
> Bruce Johnson
> University of Arizona
> College of Pharmacy
> Information Technology Group
>
> Institutions do not have opinions, merely customs
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-09-18 20:02:21 Re: Connection not allowed because of an error 'Not in pg_hba.conf'
Previous Message Johnson, Bruce E - (bjohnson) 2023-09-18 19:45:36 Connection not allowed because of an error 'Not in pg_hba.conf'