pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Torsten Mager <mager@nugmbh.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [libpq] Password authentication failed for user
Date: Thu, 12 Jan 2006 13:27:45 -0700
Message-ID: <20060112202745.GA84415@winnie.fuhr.org> (raw)
In-Reply-To: <43C65F71.7060407@nugmbh.de>
References: <43C65F71.7060407@nugmbh.de>

On Thu, Jan 12, 2006 at 02:53:53PM +0100, Torsten Mager wrote:
> In one case everything is ok and the connection to the database works.
> 
> The other program does not work fine, the error-message "Password 
> authentication failed for user" appears. If i change the configuration 
> of the server in "pg_hba.conf" from "md5" to "password", everything 
> works fine too.
> 
> What is the problem?!?

What's different about how the two programs connect to the database?
Apparently something's different; figure out what that is and you'll
be closer to finding the problem.

Are the programs connecting to the same database (not just to the
same server, but to the same database on that server)?  Are they
connecting as the same user?

-- 
Michael Fuhr



view thread (2+ messages)

Message-ID: <20060112202745.GA84415@winnie.fuhr.org>
Permalink:  ../20060112202745.GA84415@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20060112202745.GA84415@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mike@fuhr.org, mager@nugmbh.de
  Subject: Re: [libpq] Password authentication failed for user
  In-Reply-To: <20060112202745.GA84415@winnie.fuhr.org>

* 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