X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E730052867 for ; Tue, 14 Jun 2005 12:15:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87223-05 for ; Tue, 14 Jun 2005 15:14:53 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id A5138528AE for ; Tue, 14 Jun 2005 12:14:51 -0300 (ADT) Received: (qmail 7435 invoked from network); 14 Jun 2005 15:12:59 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 14 Jun 2005 15:12:59 -0000 In-Reply-To: <42AEF2A5.2050107@eclipsecat.com> References: <42AEF2A5.2050107@eclipsecat.com> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <558F5946-8A83-4FFD-A40F-B0AFD9FCC634@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Any example code of using passwords with JDBC? Date: Tue, 14 Jun 2005 11:14:47 -0400 To: david@eclipsecat.com X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.023 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/69 X-Sequence-Number: 13031 David, I use passwords all the time, Can you create a small test case which fails ? Dave On 14-Jun-05, at 11:07 AM, David Siebert wrote: > I have yet to figure out how to access a postgres server that > requires passwords. I can log onto it with PG adminIII just fine > but not using JDBC. > Here is my connect statement > m_sqlConnection = DriverManager.getConnection(s_SQLConnect, > s_SQLUser,"PASSWORD"); > I have tried clear text, md5, and encrypted. > Does JDBC detect what type of password is required and then sends it? > Or do I have to specify it somewhere? > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to > majordomo@postgresql.org > >