Re: GSSAPI/KRB5 and JDBC (again) - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: GSSAPI/KRB5 and JDBC (again)
Date
Msg-id Pine.BSO.4.64.0807291428560.29965@leary.csoft.net
Whole thread Raw
In response to Re: GSSAPI/KRB5 and JDBC (again)  ("Peter Koczan" <pjkoczan@gmail.com>)
List pgsql-jdbc

On Tue, 29 Jul 2008, Peter Koczan wrote:

> Our ticket cache location is somewhat random on each login, but it can
> always be reliably found by looking at the environment variable
> KRB5CCNAME. I can specify the temporary location, but it would be much
> better to somehow be able to grab the auth info from that.

Yes, that would be good, but I'm not sure how to do it.  I'll make a note
to look at this when I take another pass at the code.

> I got this working after a few attempts and reading up on Java auth
> configs. It looks like I have to have the line which tells which user
> to use, i.e.
>
>        props.setProperty("user", "koczan");

Per discussion with Stephen I added some code to pickup the default user
from the environment instead of requiring it:

http://archives.postgresql.org/pgsql-jdbc/2008-05/msg00013.php

So you might need to get the newer code mentioned in that message.

Kris Jurka

pgsql-jdbc by date:

Previous
From: "Peter Koczan"
Date:
Subject: Re: GSSAPI/KRB5 and JDBC (again)
Next
From: Peter Zeltins
Date:
Subject: Re: numeric type