pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Waugh <jaw@ic.net>
To: Paul Hart <paul.hart@maclaren.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Password authentication failure
Date: Mon, 11 Jun 2001 14:41:48 -0400
Message-ID: <054f01c0f2a6$a97ae3b0$0201a8c0@wilbur> (raw)
References: <PMEGKOAGJFDHONNBPEHIEEDACHAA.paul.hart@maclaren.com>

Use the password that you specified in your
CREATE USER command.

The password in the specified file is ignored when using 
the crypt authentication method.
(However, if you do specify a file, the user must have a
record there.)

HTH
-Jeff
 
----- Original Message ----- 
From: "Paul Hart" <paul.hart@maclaren.com>
To: <pgsql-jdbc@postgresql.org>
Sent: Tuesday, June 05, 2001 11:32 AM
Subject: [JDBC] Password authentication failure


> Hi all,
> 
> I'm currently running 7.1.2 on OpenBSD 2.9-current. I am attempting to
> connect to a database over IP, so I have the following 'start' command
> in my /etc/rc.local:
> 
> su postgres -c '/usr/local/pgsql/bin/pg_ctl -o "-i" -D /web/databases -l
> \
> /web/databases/logfile.log start > /dev/null'
> 
> Also, I have the following in my /web/databases/pg_hba.conf
> ('/web/databases' is set up as $PGDATA):
> 
> host         all         xxx.xxx.xx.0  255.255.255.0       crypt passwd
> 
> (obviously, the 'xxx.xxx.xx.0' is my host set.)
> 
> I have also created the file /web/databases/passwd which contains the
> username/password pair I wish to use to connect to the database.
> 
> So, after all this, I have a jdbc connection URL of:
> 
> jdbc:postgresql://[my host]/[my db]
> 
> (as per the spec)
> 
> I also pass in the username and password that I set up using pg_passwd.
> 
> 
> Of course, if it worked, I wouldn't have just written all of that :)
> 
> The JDBC driver claims "Password authentication failed for user 'XXXX'"
> 
> So, does anyone have any ideas?
> 
> Many Thanks,
> 
> Paul Hart
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 




view thread (9+ messages)  latest in thread

Message-ID: <054f01c0f2a6$a97ae3b0$0201a8c0@wilbur>
Permalink:  ../054f01c0f2a6$a97ae3b0$0201a8c0@wilbur/
Also on:    postgresql.org/message-id/054f01c0f2a6$a97ae3b0$0201a8c0@wilbur

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jaw@ic.net, paul.hart@maclaren.com
  Subject: Re: Password authentication failure
  In-Reply-To: <054f01c0f2a6$a97ae3b0$0201a8c0@wilbur>
  References: <PMEGKOAGJFDHONNBPEHIEEDACHAA.paul.hart@maclaren.com> <054f01c0f2a6$a97ae3b0$0201a8c0@wilbur>

* 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