Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8C28E64FD2F for ; Tue, 29 Jul 2008 15:37:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41056-07 for ; Tue, 29 Jul 2008 15:37:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id F22B8650452 for ; Tue, 29 Jul 2008 15:37:31 -0300 (ADT) Received: (qmail 30781 invoked by uid 1112); 29 Jul 2008 18:37:30 -0000 Date: Tue, 29 Jul 2008 14:37:30 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Peter Koczan cc: pgsql-jdbc@postgresql.org, sfrost@snowman.net Subject: Re: GSSAPI/KRB5 and JDBC (again) In-Reply-To: <4544e0330807291031l3b0f7778q3c3ac4d37bfed76a@mail.gmail.com> Message-ID: References: <4544e0330807241604ye974d07x34408ac3cc11cf3e@mail.gmail.com> <20080725005012.GB16005@tamriel.snowman.net> <4544e0330807251040uea445cao29adebc9afa71127@mail.gmail.com> <4544e0330807291031l3b0f7778q3c3ac4d37bfed76a@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/65 X-Sequence-Number: 18850 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