Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5BIe4E35567 for ; Mon, 11 Jun 2001 14:40:04 -0400 (EDT) (envelope-from jaw@ic.net) Received: (qmail 6385 invoked from network); 11 Jun 2001 18:40:01 -0000 Received: from unknown (HELO wilbur) ([64.81.18.114]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Jun 2001 18:40:01 -0000 Message-ID: <054f01c0f2a6$a97ae3b0$0201a8c0@wilbur> From: "Jeff Waugh" To: "Paul Hart" , References: Subject: Re: Password authentication failure Date: Mon, 11 Jun 2001 14:41:48 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200106/32 X-Sequence-Number: 773 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" To: 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 >