Re: Password authentication failed for user

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: robert(at)webtent(dot)com
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Password authentication failed for user
Date: 2005-06-07 18:02:54
Message-ID: 20050607180254.GA46308@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 07, 2005 at 11:17:52AM -0400, Robert Fitzpatrick wrote:
>
> I have a database that is used every day for the past year and all of a
> sudden, this morning, I get a report that a user cannot login. I have
> doubled checked the pg_hba.conf file, which has not been changed in
> several months. But only this one user even after resetting the
> password, any other user works fine and if I update the pg_hba.conf file
> to trust that user, it works. What can cause this? I don't know if I
> should post by pg_hba.conf file here, but like I said, nothing has
> changed in several months and this problem just appeared today.

Apparently something has changed -- the question is what? If nothing
on the server, what about on the user's machine? When was the last
time it was known for certain to have worked?

What method were you using before you changed it to "trust"? If
you change it back, can you log in as the user from someplace that
works for other users? Can the user in question log in as any other
user from wherever his or her own account is failing? What error
shows up in the server's logs?

Are you restricting logins by IP address? If so, has the user's
IP address changed?

It might be useful to see the contents of pg_hba.conf.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mohan, Ross 2005-06-07 18:42:58 Things I learned about PG8 on AIX5.3 with XLC compiler
Previous Message Tom Lane 2005-06-07 17:58:35 Re: Postgresql fails to start?