pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: dave.rosckes@gmail.com
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: PgJDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Fwd: [GENERAL] Trying to get SSPI/JDBC working
Date: Wed, 03 Dec 2014 19:22:30 +0800
Message-ID: <547EF276.3060805@2ndquadrant.com> (raw)
In-Reply-To: <CADK3HHKpzxtK+ay_qzGWfLUVbLK=sSBq7+g=uKnLhBs+ZiWLnw@mail.gmail.com>
References: <CAEtyQx12UkS=wDFUTjwEVNggza_Oc8KMQBptRbdgj7-90=Ei8w@mail.gmail.com>
	<CADK3HHKpzxtK+ay_qzGWfLUVbLK=sSBq7+g=uKnLhBs+ZiWLnw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

> JDBC connection url:
> "jdbc:postgresql://localhost/postgresDB?integratedSecurity=true"

I don't know where you got "integratedSecurity=true". The only reference
I can find to that is in Microsoft's documentation for MS SQL server.
There is no such parameter in PgJDBC, nor in core PotsgreSQL.

Until very recently (i.e. last week) PgJDBC did not support SSPI
natively. It was potentially possible to use it via direct access to the
Kerberos ticket, but it required lots of setup and was generally painful
and impractical.

I implemented SSPI support for PgJDBC a few weeks ago, and merged it
into the core driver this week. If you download the latest git tree of
PgJDBC and compile it, you will be able to use SSPI. No additional
parameters should be required.

There is not yet a binary release of the driver with SSPI support, but
it's pretty easy to compile PgJDBC if you've used git before. Just clone
the repository from https://github.com/pgjdbc/pgjdbc and then "ant -lib
lib all" in the source tree. You can also "ant -lib lib dist" if you
want to make a distribution zip file. See the README shown at the bottom
of https://github.com/pgjdbc/pgjdbc for more details.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (8+ messages)  latest in thread

Message-ID: <547EF276.3060805@2ndquadrant.com>
Permalink:  ../547EF276.3060805@2ndquadrant.com/
Also on:    postgresql.org/message-id/547EF276.3060805@2ndquadrant.com

 · 

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: craig@2ndquadrant.com, dave.rosckes@gmail.com, pg@fastcrypt.com
  Subject: Re: Fwd: [GENERAL] Trying to get SSPI/JDBC working
  In-Reply-To: <547EF276.3060805@2ndquadrant.com>
  References: <CAEtyQx12UkS=wDFUTjwEVNggza_Oc8KMQBptRbdgj7-90=Ei8w@mail.gmail.com> <CADK3HHKpzxtK+ay_qzGWfLUVbLK=sSBq7+g=uKnLhBs+ZiWLnw@mail.gmail.com> <547EF276.3060805@2ndquadrant.com>

* 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