Re: Any example code of using passwords with JDBC? - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Any example code of using passwords with JDBC?
Date
Msg-id 558F5946-8A83-4FFD-A40F-B0AFD9FCC634@fastcrypt.com
Whole thread Raw
In response to Any example code of using passwords with JDBC?  (David Siebert <david@eclipsecat.com>)
List pgsql-jdbc
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
>
>


pgsql-jdbc by date:

Previous
From: David Siebert
Date:
Subject: Any example code of using passwords with JDBC?
Next
From: Dave Cramer
Date:
Subject: patch for passing the cts