pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Idan Miller <idan.miller@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connecting to postgresql using SSPI via JDBC
Date: Mon, 28 Jun 2010 17:31:21 -0700
Message-ID: <4C293ED9.5050804@ejurka.com> (raw)
In-Reply-To: <AANLkTil-n3_WfhAuWyRQrP1cVb3W56jkqYHWgUTf55P1@mail.gmail.com>
References: <AANLkTim1j4UOFlaJHXIz-f65Y3s-juZLvU8FTVMMmOth@mail.gmail.com>
	<alpine.BSO.2.00.1006161427230.8108@leary.csoft.net>
	<AANLkTimQVhyCQM66uHG6X2ryoEzQsxLXom2zQW1BRY5i@mail.gmail.com>
	<alpine.BSO.2.00.1006171455300.27948@leary.csoft.net>
	<AANLkTik8XYyOynD4psAagwz9xmAiKWKYx-fgsNLw919n@mail.gmail.com>
	<4C28F2D0.6000607@ejurka.com>
	<AANLkTil-n3_WfhAuWyRQrP1cVb3W56jkqYHWgUTf55P1@mail.gmail.com>

SSPI is supported only on windows clients.  If you try authenticating 
from a Linux client against a SSPI requiring server you will get an 
error similar to the JDBC driver exception indicating that it is not 
supported.  Supporting SSPI only on windows for Java would require 
linking with native code which we don't want to do.  Unless you need 
NTLM support, I don't see why you wouldn't use GSSAPI which is supported 
on all platforms including the JDBC driver.

Kris Jurka

On 6/28/2010 4:45 PM, Idan Miller wrote:
> postgres supports native sspi support (and not gssapi) in the server
> side, but that support is missing from the client.
> So I would expect an implementation on the client side (right now a not
> supported authentication type exception is thrown when attempting to
> connect with sspi)..
>
> Idan
>
> On Mon, Jun 28, 2010 at 10:06 PM, Kris Jurka <books@ejurka.com
> <mailto:books@ejurka.com>> wrote:
>
>     Implement what?  The JDBC driver does support GSSAPI authentication
>     although it is a bit cumbersome to setup (and the only documentation
>     is in the list archives).
>
>     Kris Jurka
>
>
>     On 6/27/2010 12:52 AM, Idan Miller wrote:
>
>         Is someone willing to implement that?
>         It's a really important feature for us since the JDBC-ODBC bridge
>         doesn't work well with bytea columns (it truncates them even
>         though we
>         declared maxlongvarchar and maxvarchar to be very big).
>
>         Thanks,
>         Idan.
>
>         On Thu, Jun 17, 2010 at 9:55 PM, Kris Jurka <books@ejurka.com
>         <mailto:books@ejurka.com>
>         <mailto:books@ejurka.com <mailto:books@ejurka.com>>> wrote:
>
>
>
>             On Thu, 17 Jun 2010, Idan Miller wrote:
>
>                 As far as I know, I an configure gssapi on windows as
>         well, right?
>                 So techincaly, if I manage to do so, I will get the same
>         "sspi like"
>                 authentication, right?
>
>
>             Yes.
>
>             Kris Jurka
>
>
>
>




view thread (7+ messages)

Message-ID: <4C293ED9.5050804@ejurka.com>
Permalink:  ../4C293ED9.5050804@ejurka.com/
Also on:    postgresql.org/message-id/4C293ED9.5050804@ejurka.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: books@ejurka.com, idan.miller@gmail.com
  Subject: Re: Connecting to postgresql using SSPI via JDBC
  In-Reply-To: <4C293ED9.5050804@ejurka.com>
  References: <AANLkTim1j4UOFlaJHXIz-f65Y3s-juZLvU8FTVMMmOth@mail.gmail.com> <alpine.BSO.2.00.1006161427230.8108@leary.csoft.net> <AANLkTimQVhyCQM66uHG6X2ryoEzQsxLXom2zQW1BRY5i@mail.gmail.com> <alpine.BSO.2.00.1006171455300.27948@leary.csoft.net> <AANLkTik8XYyOynD4psAagwz9xmAiKWKYx-fgsNLw919n@mail.gmail.com> <4C28F2D0.6000607@ejurka.com> <AANLkTil-n3_WfhAuWyRQrP1cVb3W56jkqYHWgUTf55P1@mail.gmail.com> <4C293ED9.5050804@ejurka.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