pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[libpq] Password authentication failed for user
2+ messages / 2 participants
[nested] [flat]

* [libpq] Password authentication failed for user
@ 2006-01-12 13:53 Torsten Mager <mager@nugmbh.de>
  2006-01-12 20:27 ` Re: [libpq] Password authentication failed for user Michael Fuhr <mike@fuhr.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Torsten Mager @ 2006-01-12 13:53 UTC (permalink / raw)
  To: pgsql-interfaces

Hello!

I have two different programs written in C. Both programs are compilied 
and linked to the same liqpq. Postgresql-7.4.7 is installed and used.

In both programs similar connections to the same database are made over 
network. On the server runs postgresql-7.3.4.

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?!?



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [libpq] Password authentication failed for user
  2006-01-12 13:53 [libpq] Password authentication failed for user Torsten Mager <mager@nugmbh.de>
@ 2006-01-12 20:27 ` Michael Fuhr <mike@fuhr.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Fuhr @ 2006-01-12 20:27 UTC (permalink / raw)
  To: Torsten Mager <mager@nugmbh.de>; +Cc: pgsql-interfaces

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-01-12 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 13:53 [libpq] Password authentication failed for user Torsten Mager <mager@nugmbh.de>
2006-01-12 20:27 ` Michael Fuhr <mike@fuhr.org>

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