Skip site navigation (1) Skip section navigation (2)

Re: Authentication problem

From: "Walker, Jed S" <Jed_Walker(at)cable(dot)comcast(dot)com>
To: 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "'pgsql-novice(at)postgresql(dot)org'" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Authentication problem
Date: 2005-04-18 20:22:28
Message-ID: 41669DC6FE3B80449A33A4DD46DB370A09E7EA73@entcoexch15.broadband.att.com (view raw or flat)
Thread:
Lists: pgsql-novice
Here's the contents of the file:

# TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
local   all         postgres                                        ident
sameuser
local   VRNJED      all                                             md5
host    VRNJED      all         2.30.0.0          255.255.0.0       md5 


"Walker, Jed S" <Jed_Walker(at)cable(dot)comcast(dot)com> writes:
> I have the postgresql.conf listen_addresses='*'
> and in pg_hba.conf I have
> host   VRNJED    all      2.30.0.0   255.255.0.0    md5

That looks fine ...

> I have three clients on Windows PCs each on a different subnet 
> (2.30.50, 2.30.190, 2.30.31). One of them connects just fine, the 
> password is asked for and the logon succeeds, but the other two get

> C:\dev\PostgreSQL>psql -h robux -d VRNJED -U vrngui
> psql: FATAL:  password authentication failed for user "vrngui"

> I'm not sure why these two fail when the others work.

Odd.  One possibility is that the postmaster isn't using the pg_hba.conf
file you think it is (did you signal it to reload its configuration, or else
stop and restart it, after editing the file?).  Another idea that comes to
mind is some sort of packet filtering at the network or OS level ... though
I'm not sure how packet filtering could cause this particular error message.

			regards, tom lane


-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us] 
Sent: Monday, April 18, 2005 2:19 PM
To: Walker, Jed S
Cc: 'pgsql-novice(at)postgresql(dot)org'
Subject: Re: [NOVICE] Authentication problem 

"Walker, Jed S" <Jed_Walker(at)cable(dot)comcast(dot)com> writes:
> I tried using 'trust' and the clients are able to connect.  Could it 
> be a case-sensitivity problem with the database name (seeing as it's all
caps)?

Maybe.  You didn't show us what other entries are in your pg_hba file.
If the line you showed us failed to match for some reason, what would it
fall through to using?

			regards, tom lane

pgsql-novice by date

Next:From: brewDate: 2005-04-19 00:44:21
Subject: Re: Storing Large Objects
Previous:From: Tom LaneDate: 2005-04-18 20:18:49
Subject: Re: Authentication problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group