Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5779F6503A5 for ; Fri, 25 Jul 2008 19:20:27 -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 00859-10 for ; Fri, 25 Jul 2008 19:20:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by postgresql.org (Postfix) with ESMTP id 6039A65039C for ; Fri, 25 Jul 2008 19:20:22 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 1600F8407D; Fri, 25 Jul 2008 18:20:21 -0400 (EDT) Date: Fri, 25 Jul 2008 18:20:21 -0400 From: Stephen Frost To: Peter Koczan Cc: pgsql-jdbc@postgresql.org Subject: Re: GSSAPI/KRB5 and JDBC (again) Message-ID: <20080725222021.GE16005@tamriel.snowman.net> Mail-Followup-To: Peter Koczan , pgsql-jdbc@postgresql.org References: <4544e0330807241604ye974d07x34408ac3cc11cf3e@mail.gmail.com> <20080725005012.GB16005@tamriel.snowman.net> <4544e0330807251040uea445cao29adebc9afa71127@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OZkY3AIuv2LYvjdk" Content-Disposition: inline In-Reply-To: <4544e0330807251040uea445cao29adebc9afa71127@mail.gmail.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.25-2-amd64 (x86_64) X-Uptime: 18:17:07 up 11 days, 21:31, 25 users, load average: 0.00, 0.05, 0.04 User-Agent: Mutt/1.5.18 (2008-05-17) 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/54 X-Sequence-Number: 18839 --OZkY3AIuv2LYvjdk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Peter Koczan (pjkoczan@gmail.com) wrote: > On Thu, Jul 24, 2008 at 7:50 PM, Stephen Frost wrote: > > So you know, that generally means "wrong password". Have you tried > > kinit'ing first? Is it prompting you for a password? >=20 > I tried kinit, and it didn't work, but putting my real Kerberos > password in the password field worked. It looks like it's trying to > get a new set of credentials/tickets when authenticating, instead of > using stashed or readily available credentials. Ah, yes, I have some recollection of that. I forget how, exactly, but I thought that I found a way around that. > This is better than nothing, but it would be very nice to not force > users to specify a password when connecting. It kinda defeats the > purpose of a single-sign-on authentication system, and I'd really > prefer not having users put their password in plaintext files, as it > seems rather insecure. At the very least, the password should be able > to be obscured or encrypted somehow in the connection, but even this > is less than ideal. I agree 110%. It really needs to use the existing credentials, though it's nice that this shows the basic capability working. > Is there any way to tell JDBC to use available KRB5/GSSAPI credentials? I'll try to find some time to test my setup again and see if I can find a way to do that. Of course, part of the problem here will end up being silly applications that insist on being given a username and password. It'd be nice if those could be left blank, but even so, users will end up being annoyed by it. :( My primary JDBC app at the moment is uDig, in case anyone's listening. ;) > > I'm *really* anxious to have GSSAPI support in JDBC and fully > > supported.. I've got it working in a test rig, but I need it working > > under Linux and Windows for a number of clients and I havn't had time to > > make sure all the issues are worked through. :/ >=20 > Me too. Now I just have to get SSL working, too. Please update us on how that goes. :) Thanks, Stephen --OZkY3AIuv2LYvjdk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkiKUaUACgkQrzgMPqB3kigiXQCgl4wfEiP+C97LG3sYEFzQxatS dQwAniG7H6QgykpDf0fdZqq9Le/l3p7r =30oh -----END PGP SIGNATURE----- --OZkY3AIuv2LYvjdk--