pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connecting to postgresql using SSPI via JDBC
7+ messages / 2 participants
[nested] [flat]

* Connecting to postgresql using SSPI via JDBC
@ 2010-06-16 09:31  Idan Miller <idan.miller@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Idan Miller @ 2010-06-16 09:31 UTC (permalink / raw)
  To: pgsql-jdbc

Hi everyone,

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?
Does it support ldap?

Thanks,
Idan

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Connecting to postgresql using SSPI via JDBC
@ 2010-06-16 18:32  Kris Jurka <books@ejurka.com>
  parent: Idan Miller <idan.miller@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Kris Jurka @ 2010-06-16 18:32 UTC (permalink / raw)
  To: Idan Miller <idan.miller@gmail.com>; +Cc: pgsql-jdbc



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



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Connecting to postgresql using SSPI via JDBC
@ 2010-06-17 07:36  Idan Miller <idan.miller@gmail.com>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Idan Miller @ 2010-06-17 07:36 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc

Thanks!

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?

Idan.

On Wed, Jun 16, 2010 at 9:32 PM, Kris Jurka <books@ejurka.com> wrote:

>
>
> 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
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Connecting to postgresql using SSPI via JDBC
@ 2010-06-17 18:55  Kris Jurka <books@ejurka.com>
  parent: Idan Miller <idan.miller@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Kris Jurka @ 2010-06-17 18:55 UTC (permalink / raw)
  To: Idan Miller <idan.miller@gmail.com>; +Cc: pgsql-jdbc



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



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Connecting to postgresql using SSPI via JDBC
@ 2010-06-27 07:52  Idan Miller <idan.miller@gmail.com>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Idan Miller @ 2010-06-27 07:52 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc

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> 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
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Connecting to postgresql using SSPI via JDBC
@ 2010-06-28 19:06  Kris Jurka <books@ejurka.com>
  parent: Idan Miller <idan.miller@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Kris Jurka @ 2010-06-28 19:06 UTC (permalink / raw)
  To: Idan Miller <idan.miller@gmail.com>; +Cc: pgsql-jdbc

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>> 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
>
>




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Connecting to postgresql using SSPI via JDBC
@ 2010-06-29 00:31  Kris Jurka <books@ejurka.com>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Kris Jurka @ 2010-06-29 00:31 UTC (permalink / raw)
  To: Idan Miller <idan.miller@gmail.com>; +Cc: pgsql-jdbc

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
>
>
>
>




^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2010-06-29 00:31 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-06-16 09:31 Connecting to postgresql using SSPI via JDBC Idan Miller <idan.miller@gmail.com>
2010-06-16 18:32 ` Kris Jurka <books@ejurka.com>
2010-06-17 07:36   ` Idan Miller <idan.miller@gmail.com>
2010-06-17 18:55     ` Kris Jurka <books@ejurka.com>
2010-06-27 07:52       ` Idan Miller <idan.miller@gmail.com>
2010-06-28 19:06         ` Kris Jurka <books@ejurka.com>
2010-06-29 00:31           ` Kris Jurka <books@ejurka.com>

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