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 B7C1352812 for ; Tue, 14 Jun 2005 12:07:21 -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 87464-01 for ; Tue, 14 Jun 2005 15:07:20 +0000 (GMT) Received: from snagglepuss.aretoo.com (snagglepuss.aretoo.com [65.84.232.221]) by svr1.postgresql.org (Postfix) with ESMTP id C52055289B for ; Tue, 14 Jun 2005 12:07:19 -0300 (ADT) Received: from [192.168.100.211] (unknown [192.168.100.211]) by snagglepuss.aretoo.com (Postfix) with ESMTP id 4EFC845EF1 for ; Tue, 14 Jun 2005 11:09:18 -0400 (EDT) Message-ID: <42AEF2A5.2050107@eclipsecat.com> Date: Tue, 14 Jun 2005 11:07:17 -0400 From: David Siebert Reply-To: david@eclipsecat.com User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Any example code of using passwords with JDBC? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/68 X-Sequence-Number: 13030 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?