pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC and GSSAPI/Krb5
12+ messages / 3 participants
[nested] [flat]

* JDBC and GSSAPI/Krb5
@ 2007-12-05 21:49  Peter Koczan <pjkoczan@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Peter Koczan @ 2007-12-05 21:49 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all,

I know this question has been asked before, but the answer might have
changed with the impending release of postgresql 8.3. Since 8.3
supports GSSAPI authentication, and Java can talk to Kerberos through
GSSAPI (though not natively), is this feasible? I keep getting this
"authentication type 7 is not supported" errors, so I know it's not
currently supported. Are there any plans to have GSSAPI support for
the 8.3 JDBC driver, or are there showstoppers in doing so?

This would be a very nice selling point and extra feature for
upgrading to 8.3. Thanks much.

Peter



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-05 22:01  Kris Jurka <books@ejurka.com>
  parent: Peter Koczan <pjkoczan@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Kris Jurka @ 2007-12-05 22:01 UTC (permalink / raw)
  To: Peter Koczan <pjkoczan@gmail.com>; +Cc: pgsql-jdbc; hotz@jpl.nasa.gov



On Wed, 5 Dec 2007, Peter Koczan wrote:

> I know this question has been asked before, but the answer might have 
> changed with the impending release of postgresql 8.3. Since 8.3 supports 
> GSSAPI authentication, and Java can talk to Kerberos through GSSAPI 
> (though not natively), is this feasible? I keep getting this 
> "authentication type 7 is not supported" errors, so I know it's not 
> currently supported. Are there any plans to have GSSAPI support for the 
> 8.3 JDBC driver, or are there showstoppers in doing so?

Henry Hotz, the person who contributed the GSSAPI support for the server, 
had plans to do the JDBC work as well, but I haven't seen anything from 
him.  I've thought about working on it, but since I don't have any 
kerberos infrastructure setup, it's kind of a pain to get all that going. 
It's unclear how much work it will be, so it might get pushed to the 8.4 
driver.

Kris Jurka



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 02:59  Henry B. Hotz <hotz@jpl.nasa.gov>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 2 replies; 12+ messages in thread

From: Henry B. Hotz @ 2007-12-06 02:59 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: Peter Koczan <pjkoczan@gmail.com>; pgsql-jdbc

OK.  I've been warned.  ;-)

If I do it over Christmas vacation would that be soon enough?   
Unfortunately work commitments have heated up, and I can't really  
sneak time for it before then.

On Dec 5, 2007, at 2:01 PM, Kris Jurka wrote:

>
>
> On Wed, 5 Dec 2007, Peter Koczan wrote:
>
>> I know this question has been asked before, but the answer might  
>> have changed with the impending release of postgresql 8.3. Since  
>> 8.3 supports GSSAPI authentication, and Java can talk to Kerberos  
>> through GSSAPI (though not natively), is this feasible? I keep  
>> getting this "authentication type 7 is not supported" errors, so I  
>> know it's not currently supported. Are there any plans to have  
>> GSSAPI support for the 8.3 JDBC driver, or are there showstoppers  
>> in doing so?
>
> Henry Hotz, the person who contributed the GSSAPI support for the  
> server, had plans to do the JDBC work as well, but I haven't seen  
> anything from him.  I've thought about working on it, but since I  
> don't have any kerberos infrastructure setup, it's kind of a pain  
> to get all that going. It's unclear how much work it will be, so it  
> might get pushed to the 8.4 driver.
>
> Kris Jurka

------------------------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu





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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 04:37  Kris Jurka <books@ejurka.com>
  parent: Henry B. Hotz <hotz@jpl.nasa.gov>
  1 sibling, 1 reply; 12+ messages in thread

From: Kris Jurka @ 2007-12-06 04:37 UTC (permalink / raw)
  To: Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Peter Koczan <pjkoczan@gmail.com>; pgsql-jdbc



On Wed, 5 Dec 2007, Henry B. Hotz wrote:

> If I do it over Christmas vacation would that be soon enough?  Unfortunately 
> work commitments have heated up, and I can't really sneak time for it before 
> then.
>

That's cutting it real close.  The server release is tenatively scheduled 
for the first or second week of January and I'll be on vacation the last 
two weeks of the year, so it doesn't look good.  Unless the changes are 
isolated (I'd think so) and trivial (not so sure), it's not going to get 
in.  I'll see if I can find some time over the next two weeks to work on 
it.  If not we'll just have to see...

Kris Jurka



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 07:45  Henry B. Hotz <hotz@jpl.nasa.gov>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Henry B. Hotz @ 2007-12-06 07:45 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: Peter Koczan <pjkoczan@gmail.com>; pgsql-jdbc


On Dec 5, 2007, at 8:37 PM, Kris Jurka wrote:

> On Wed, 5 Dec 2007, Henry B. Hotz wrote:
>
>> If I do it over Christmas vacation would that be soon enough?   
>> Unfortunately work commitments have heated up, and I can't really  
>> sneak time for it before then.
>>
>
> That's cutting it real close.  The server release is tenatively  
> scheduled for the first or second week of January and I'll be on  
> vacation the last two weeks of the year, so it doesn't look good.   
> Unless the changes are isolated (I'd think so) and trivial (not so  
> sure), it's not going to get in.  I'll see if I can find some time  
> over the next two weeks to work on it.  If not we'll just have to  
> see...
>
> Kris Jurka

Well, maybe I can do a quick feasibility check next week.  It might  
be easy.  I know the Java API is pretty different from C, but I think  
not doing security layers localizes what I need to worry about by a lot.

------------------------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu





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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 16:13  Peter Koczan <pjkoczan@gmail.com>
  parent: Henry B. Hotz <hotz@jpl.nasa.gov>
  1 sibling, 1 reply; 12+ messages in thread

From: Peter Koczan @ 2007-12-06 16:13 UTC (permalink / raw)
  To: Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

On Dec 5, 2007 8:59 PM, Henry B. Hotz <hotz@jpl.nasa.gov> wrote:
> OK.  I've been warned.  ;-)
>
> If I do it over Christmas vacation would that be soon enough?
> Unfortunately work commitments have heated up, and I can't really
> sneak time for it before then.

FWIW, I'd be willing to be a tester for this and run this even as a
beta version.

Peter



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 19:10  Henry B. Hotz <hotz@jpl.nasa.gov>
  parent: Peter Koczan <pjkoczan@gmail.com>
  0 siblings, 1 reply; 12+ messages in thread

From: Henry B. Hotz @ 2007-12-06 19:10 UTC (permalink / raw)
  To: Peter Koczan <pjkoczan@gmail.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

Thank you.  I'm looking at it.

I think the changes *should* be localized to v3/ 
ConnectionFactoryImpl.java.  I need to see how Magnus changed the  
wire protocol (he did it differently from what I did), and I need to  
try a sample program first so I can debug wire/API issues  
independently from PG issues.

I will not even attempt to address the SSPI auth mechanism since I  
don't understand fully why it exists.  SSPI is supposed to just be an  
alternate C binding for the GSSAPI wire protocol, but there are other  
issues that confound that statement.  I believe that Java should  
stick to the standard, at least initially.

On Dec 6, 2007, at 8:13 AM, Peter Koczan wrote:

> On Dec 5, 2007 8:59 PM, Henry B. Hotz <hotz@jpl.nasa.gov> wrote:
>> OK.  I've been warned.  ;-)
>>
>> If I do it over Christmas vacation would that be soon enough?
>> Unfortunately work commitments have heated up, and I can't really
>> sneak time for it before then.
>
> FWIW, I'd be willing to be a tester for this and run this even as a
> beta version.
>
> Peter




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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 19:47  Peter Koczan <pjkoczan@gmail.com>
  parent: Henry B. Hotz <hotz@jpl.nasa.gov>
  0 siblings, 2 replies; 12+ messages in thread

From: Peter Koczan @ 2007-12-06 19:47 UTC (permalink / raw)
  To: Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

On Dec 6, 2007 1:10 PM, Henry B. Hotz <hotz@jpl.nasa.gov> wrote:
> Thank you.  I'm looking at it.
>
> I think the changes *should* be localized to v3/
> ConnectionFactoryImpl.java.  I need to see how Magnus changed the
> wire protocol (he did it differently from what I did), and I need to
> try a sample program first so I can debug wire/API issues
> independently from PG issues.
>
> I will not even attempt to address the SSPI auth mechanism since I
> don't understand fully why it exists.  SSPI is supposed to just be an
> alternate C binding for the GSSAPI wire protocol, but there are other
> issues that confound that statement.  I believe that Java should
> stick to the standard, at least initially.

http://people.planetpostgresql.org/mha/index.php?/archives/155-Integrated-Security-in-PostgreSQL-8.3...

According to this, SSPI is a Windows-only thing (for both clients and
servers). Apparently each can authenticate against a "gss" entry in
pg_hba.conf.

I don't know what implications that has for support in the JDBC
driver. I'll let you figure that out :-).

Peter



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 19:50  Peter Koczan <pjkoczan@gmail.com>
  parent: Peter Koczan <pjkoczan@gmail.com>
  1 sibling, 0 replies; 12+ messages in thread

From: Peter Koczan @ 2007-12-06 19:50 UTC (permalink / raw)
  To: Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc

On Dec 6, 2007 1:47 PM, Peter Koczan <pjkoczan@gmail.com> wrote:
> On Dec 6, 2007 1:10 PM, Henry B. Hotz <hotz@jpl.nasa.gov> wrote:
> > Thank you.  I'm looking at it.
> >
> > I think the changes *should* be localized to v3/
> > ConnectionFactoryImpl.java.  I need to see how Magnus changed the
> > wire protocol (he did it differently from what I did), and I need to
> > try a sample program first so I can debug wire/API issues
> > independently from PG issues.
> >
> > I will not even attempt to address the SSPI auth mechanism since I
> > don't understand fully why it exists.  SSPI is supposed to just be an
> > alternate C binding for the GSSAPI wire protocol, but there are other
> > issues that confound that statement.  I believe that Java should
> > stick to the standard, at least initially.
>
> http://people.planetpostgresql.org/mha/index.php?/archives/155-Integrated-Security-in-PostgreSQL-8.3...
>
> According to this, SSPI is a Windows-only thing (for both clients and
> servers). Apparently each can authenticate against a "gss" entry in
> pg_hba.conf.
>
> I don't know what implications that has for support in the JDBC
> driver. I'll let you figure that out :-).

Oh, and by "each" I mean both SSPI and GSSAPI.

B'oh.

Peter



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 20:00  Henry B. Hotz <hotz@jpl.nasa.gov>
  parent: Peter Koczan <pjkoczan@gmail.com>
  1 sibling, 1 reply; 12+ messages in thread

From: Henry B. Hotz @ 2007-12-06 20:00 UTC (permalink / raw)
  To: Peter Koczan <pjkoczan@gmail.com>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc


On Dec 6, 2007, at 11:47 AM, Peter Koczan wrote:

> On Dec 6, 2007 1:10 PM, Henry B. Hotz <hotz@jpl.nasa.gov> wrote:
>> Thank you.  I'm looking at it.
>>
>> I think the changes *should* be localized to v3/
>> ConnectionFactoryImpl.java.  I need to see how Magnus changed the
>> wire protocol (he did it differently from what I did), and I need to
>> try a sample program first so I can debug wire/API issues
>> independently from PG issues.
>>
>> I will not even attempt to address the SSPI auth mechanism since I
>> don't understand fully why it exists.  SSPI is supposed to just be an
>> alternate C binding for the GSSAPI wire protocol, but there are other
>> issues that confound that statement.  I believe that Java should
>> stick to the standard, at least initially.
>
> http://people.planetpostgresql.org/mha/index.php?/archives/155- 
> Integrated-Security-in-PostgreSQL-8.3.html
>
> According to this, SSPI is a Windows-only thing (for both clients and
> servers). Apparently each can authenticate against a "gss" entry in
> pg_hba.conf.
>
> I don't know what implications that has for support in the JDBC
> driver. I'll let you figure that out :-).
>
> Peter

What he says about not verifying the domain is a serious security bug  
IMO, but it's been discussed.  I think it's a little more complex  
than that posting indicates.

If they are wire-compatible then there is no reason to use a  
different value on the wire to differentiate them.  This is the point  
that I said I didn't understand.

This is the wrong audience for these complaints though.

------------------------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu





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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-06 20:05  Kris Jurka <books@ejurka.com>
  parent: Henry B. Hotz <hotz@jpl.nasa.gov>
  0 siblings, 1 reply; 12+ messages in thread

From: Kris Jurka @ 2007-12-06 20:05 UTC (permalink / raw)
  To: Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Peter Koczan <pjkoczan@gmail.com>; pgsql-jdbc



On Thu, 6 Dec 2007, Henry B. Hotz wrote:

> If they are wire-compatible then there is no reason to use a different value 
> on the wire to differentiate them.  This is the point that I said I didn't 
> understand.
>

I think the point is that a client using the SSPI library can operate 
wire-compatibly with a server using the GSSSPI library, but that only 
happens with the auth type of "gss".  When the "sspi" auth type is used, 
that signals to a client using the SSPI library to do something 
non wire-compatible and that's why the two auth types are used.

Kris Jurka



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

* Re: JDBC and GSSAPI/Krb5
@ 2007-12-07 07:26  Henry B. Hotz <hotz@jpl.nasa.gov>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Henry B. Hotz @ 2007-12-07 07:26 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: Peter Koczan <pjkoczan@gmail.com>; pgsql-jdbc


On Dec 6, 2007, at 12:05 PM, Kris Jurka wrote:

>
>
> On Thu, 6 Dec 2007, Henry B. Hotz wrote:
>
>> If they are wire-compatible then there is no reason to use a  
>> different value on the wire to differentiate them.  This is the  
>> point that I said I didn't understand.
>>
>
> I think the point is that a client using the SSPI library can  
> operate wire-compatibly with a server using the GSSSPI library, but  
> that only happens with the auth type of "gss".  When the "sspi"  
> auth type is used, that signals to a client using the SSPI library  
> to do something non wire-compatible and that's why the two auth  
> types are used.
>
> Kris Jurka

I'm not enough of a Windows person to know if that makes sense.  I'll  
ask Magnus when I get far enough it matters.  I think my choices are  
to ignore the difference or to only support the two GSS types.

------------------------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu





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


end of thread, other threads:[~2007-12-07 07:26 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-12-05 21:49 JDBC and GSSAPI/Krb5 Peter Koczan <pjkoczan@gmail.com>
2007-12-05 22:01 ` Kris Jurka <books@ejurka.com>
2007-12-06 02:59   ` Henry B. Hotz <hotz@jpl.nasa.gov>
2007-12-06 04:37     ` Kris Jurka <books@ejurka.com>
2007-12-06 07:45       ` Henry B. Hotz <hotz@jpl.nasa.gov>
2007-12-06 16:13     ` Peter Koczan <pjkoczan@gmail.com>
2007-12-06 19:10       ` Henry B. Hotz <hotz@jpl.nasa.gov>
2007-12-06 19:47         ` Peter Koczan <pjkoczan@gmail.com>
2007-12-06 19:50           ` Peter Koczan <pjkoczan@gmail.com>
2007-12-06 20:00           ` Henry B. Hotz <hotz@jpl.nasa.gov>
2007-12-06 20:05             ` Kris Jurka <books@ejurka.com>
2007-12-07 07:26               ` Henry B. Hotz <hotz@jpl.nasa.gov>

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