pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
GSSAPI or Kerberos authentication problems
5+ messages / 2 participants
[nested] [flat]

* GSSAPI or Kerberos authentication problems
@ 2005-09-14 20:08  Mike Warnecke <mike@audiowarehouse.ca>
  0 siblings, 2 replies; 5+ messages in thread

From: Mike Warnecke @ 2005-09-14 20:08 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all, I'm new to this list, and I haven't been able to find a solution
to this problem by Googling, so I hope I'm not beating a dead horse
here.

I'm using the postgresql-jdbc driver with OpenOffice.org 2.0, and I
can't get it to use GSSAPI authentication using my Kerberos credentials.
I have no other apps that use postgresql-jdbc, but it appears as though
the problem is in this driver, not OOo.

psql And other apps using the native PostgreSQL interface work fine
using Kerberos authentication, just not JDBC.

Does the postgresql-jdbc driver support Kerberos/GSSAPI authentication?
If not, what is required to get it done?


-- 
Mike Warnecke <mike@audiowarehouse.ca>
Audio Warehouse

Attachments:

  signature.asc (application/pgp-signature, 188B) download

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

* Re: GSSAPI or Kerberos authentication problems
@ 2005-09-14 21:00  Kris Jurka <books@ejurka.com>
  parent: Mike Warnecke <mike@audiowarehouse.ca>
  1 sibling, 1 reply; 5+ messages in thread

From: Kris Jurka @ 2005-09-14 21:00 UTC (permalink / raw)
  To: Mike Warnecke <mike@audiowarehouse.ca>; +Cc: pgsql-jdbc



On Wed, 14 Sep 2005, Mike Warnecke wrote:

> I'm using the postgresql-jdbc driver with OpenOffice.org 2.0, and I
> can't get it to use GSSAPI authentication using my Kerberos credentials.
> I have no other apps that use postgresql-jdbc, but it appears as though
> the problem is in this driver, not OOo.
>
> psql And other apps using the native PostgreSQL interface work fine
> using Kerberos authentication, just not JDBC.
>
> Does the postgresql-jdbc driver support Kerberos/GSSAPI authentication?
> If not, what is required to get it done?
>

The JDBC driver does not currently support kerberos auth.  Since the 
driver is pure Java we cannot rely on the standard postgresql client 
library (libpq) and its kerberos support.  When the driver was initially 
written the only kerberos support available required separate third party 
libraries.  With the availability of JAAS in JDK 1.3 and subsequent 
integration in JDK 1.4 that is no longer the case.  I imagine someone 
familiar with JAAS and kerberos could add support to the driver relatively 
easily, but Java and kerberos do not seem like a common combination (at 
least in the Postgresql world).  Without the expertise or the demand for 
this feature it doesn't seem likely that it will happen anytime soon.

Kris Jurka



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

* Re: GSSAPI or Kerberos authentication problems
@ 2005-09-14 21:48  Mike Warnecke <mike@audiowarehouse.ca>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Mike Warnecke @ 2005-09-14 21:48 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc

On Wed, 2005-14-09 at 16:00 -0500, Kris Jurka wrote:
> 
> On Wed, 14 Sep 2005, Mike Warnecke wrote:
> 
> > I'm using the postgresql-jdbc driver with OpenOffice.org 2.0, and I
> > can't get it to use GSSAPI authentication using my Kerberos credentials.
> > I have no other apps that use postgresql-jdbc, but it appears as though
> > the problem is in this driver, not OOo.
> >
> > psql And other apps using the native PostgreSQL interface work fine
> > using Kerberos authentication, just not JDBC.
> >
> > Does the postgresql-jdbc driver support Kerberos/GSSAPI authentication?
> > If not, what is required to get it done?
> >
> 
> The JDBC driver does not currently support kerberos auth.  Since the 
> driver is pure Java we cannot rely on the standard postgresql client 
> library (libpq) and its kerberos support.  When the driver was initially 
> written the only kerberos support available required separate third party 
> libraries.  With the availability of JAAS in JDK 1.3 and subsequent 
> integration in JDK 1.4 that is no longer the case.  I imagine someone 
> familiar with JAAS and kerberos could add support to the driver relatively 
> easily, but Java and kerberos do not seem like a common combination (at 
> least in the Postgresql world).  Without the expertise or the demand for 
> this feature it doesn't seem likely that it will happen anytime soon.

So, if I need it, I'll need to learn JAAS, and contribute it then,
right?

As far as nobody using JDBC, PostgreSQL, and Kerberos together, I can't
understand why a single sign-on architecture with real security wouldn't
be more popular.  But then again, look at the number of people still
using Zip encryption...

I think you've given me the necessary information with respect to JAAS
though.  Thanks!


-- 
Mike Warnecke <mike@audiowarehouse.ca>
Audio Warehouse

Attachments:

  signature.asc (application/pgp-signature, 188B) download

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

* Re: GSSAPI or Kerberos authentication problems
@ 2005-09-14 22:04  Kris Jurka <books@ejurka.com>
  parent: Mike Warnecke <mike@audiowarehouse.ca>
  0 siblings, 0 replies; 5+ messages in thread

From: Kris Jurka @ 2005-09-14 22:04 UTC (permalink / raw)
  To: Mike Warnecke <mike@audiowarehouse.ca>; +Cc: pgsql-jdbc



On Wed, 14 Sep 2005, Mike Warnecke wrote:

> So, if I need it, I'll need to learn JAAS, and contribute it then,
> right?

Right, that'd be great.

> As far as nobody using JDBC, PostgreSQL, and Kerberos together, I can't
> understand why a single sign-on architecture with real security wouldn't
> be more popular.  But then again, look at the number of people still
> using Zip encryption...
>

I think it's because JDBC is so often used as a server side technology 
with one database user for all clients.

Kris Jurka



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

* Re: GSSAPI or Kerberos authentication problems
@ 2005-09-29 23:19  Kris Jurka <books@ejurka.com>
  parent: Mike Warnecke <mike@audiowarehouse.ca>
  1 sibling, 0 replies; 5+ messages in thread

From: Kris Jurka @ 2005-09-29 23:19 UTC (permalink / raw)
  To: Mike Warnecke <mike@audiowarehouse.ca>; Phil Dodderidge <jspoon02@yahoo.com>

Mike Warnecke wrote:

> Does the postgresql-jdbc driver support Kerberos/GSSAPI authentication?
> If not, what is required to get it done?
> 
> 

Doing a little further reading and testing shows that the server would 
need to be extended to provide GSSAPI support even though the underlying 
authentication would be done using Kerberos.  Java has Kerberos support, 
but not the ability to "speak" it directly, only through the GSSAPI 
interface.

Phil Dodderidge claimed to have this up and working quite some time ago, 
perhaps he can share some more info...

http://archives.postgresql.org/pgsql-hackers/2002-04/msg01461.php

Although I'm not sure people want GSSAPI support in the backend given 
the comments on adding SASL support here:

http://archives.postgresql.org/pgsql-hackers/2002-05/msg00760.php

Kris Jurka



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


end of thread, other threads:[~2005-09-29 23:19 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-14 20:08 GSSAPI or Kerberos authentication problems Mike Warnecke <mike@audiowarehouse.ca>
2005-09-14 21:00 ` Kris Jurka <books@ejurka.com>
2005-09-14 21:48   ` Mike Warnecke <mike@audiowarehouse.ca>
2005-09-14 22:04     ` Kris Jurka <books@ejurka.com>
2005-09-29 23:19 ` 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