Re: How to troubleshoot authentication failure?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Kynn Jones <kynnjo(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to troubleshoot authentication failure?
Date: 2009-10-07 15:17:21
Message-ID: 20091007151721.GH7719@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kynn Jones escribió:
> I have two Linux servers that are pretty similar to each other, and both are
> running PostgreSQL servers, but in one server a certain Perl script succeeds
> in connecting to the localhost server whereas in the other one the same
> script fails. The error on the second server is of the form "fe_sendauth:
> no password supplied".
> I have verified all the possible reasons that I can think of for why this
> script succeeds on one server but fails on the other. In all these respects
> the two set ups are absolutely identical: same pg_hba.conf files, same
> script parameters, same versions of Postgres, same everything.

Maybe you have a .pgpass file storing a password for one of them and not
the other?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alan McKay 2009-10-07 15:20:04 Re: LF PostgreSQL virtual Linux host provider in India and/or Asia Pac
Previous Message Kynn Jones 2009-10-07 14:57:41 How to troubleshoot authentication failure?