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: Wed, 16 Jun 2010 14:32:47 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1006161427230.8108@leary.csoft.net> (raw)
In-Reply-To: <AANLkTim1j4UOFlaJHXIz-f65Y3s-juZLvU8FTVMMmOth@mail.gmail.com>
References: <AANLkTim1j4UOFlaJHXIz-f65Y3s-juZLvU8FTVMMmOth@mail.gmail.com>



On Wed, 16 Jun 2010, Idan Miller wrote:

> I've got a postgresql configured with sspi authentication.
> The authentication works usng psql, however, when attempting to connect via
> the jdbc driver I get this exception:
> 
> "org.postgresql.util.PSQLException: The authentication type 9 is not
> supported. Check that you have configured the pg_hba.conf file to include
> the client's IP address or subnet, and that it is using an authentication
> scheme supported by the driver."
> 
> Does the jdbc driver simply not support sspi?

The JDBC driver supports gssapi, but not sspi.  It's possible that the 
existing gssapi support could be used to implement sspi, but no one has 
tried that.

> Does it support ldap?
>

Yes, no specific client support is needed for LDAP authentication, that is 
all done server side.  Using LDAP transmits the password from the driver 
to the server in plaintext form, so you should use a SSL connection if 
you're worried about security.

Kris Jurka



view thread (7+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1006161427230.8108@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1006161427230.8108@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1006161427230.8108@leary.csoft.net

 · 

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: <alpine.BSO.2.00.1006161427230.8108@leary.csoft.net>
  References: <AANLkTim1j4UOFlaJHXIz-f65Y3s-juZLvU8FTVMMmOth@mail.gmail.com> <alpine.BSO.2.00.1006161427230.8108@leary.csoft.net>

* 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