Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UK4oP-00085k-3o for pgsql-admin@arkaria.postgresql.org; Mon, 25 Mar 2013 10:39:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UK4oO-0000zv-Jk for pgsql-admin@arkaria.postgresql.org; Mon, 25 Mar 2013 10:39:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UK4oM-0000zn-Jr for pgsql-admin@postgresql.org; Mon, 25 Mar 2013 10:39:30 +0000 Received: from co9ehsobe004.messaging.microsoft.com ([207.46.163.27] helo=co9outboundpool.messaging.microsoft.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UK4o5-0006us-3R for pgsql-admin@postgresql.org; Mon, 25 Mar 2013 10:39:29 +0000 Received: from mail3-co9-R.bigfish.com (10.236.132.244) by CO9EHSOBE018.bigfish.com (10.236.130.81) with Microsoft SMTP Server id 14.1.225.23; Mon, 25 Mar 2013 10:39:10 +0000 Received: from mail3-co9 (localhost [127.0.0.1]) by mail3-co9-R.bigfish.com (Postfix) with ESMTP id 3EACD400B3; Mon, 25 Mar 2013 10:39:10 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.252.5; KIP:(null); UIP:(null); IPV:NLI; H:DB3PRD0310HT005.eurprd03.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: -3 X-BigFish: PS-3(zzbb2dI98dId772h1432I4015Izz1f42h1ee6h1de0h1d18h1202h1e76h1d1ah1d2ahzz8275ch17326ah8275bhz2dh2a8h668h839h947he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19b4h19c3h19ceh1ad9h1b0ah1889i1155h) Received: from mail3-co9 (localhost.localdomain [127.0.0.1]) by mail3-co9 (MessageSwitch) id 1364207948327409_3908; Mon, 25 Mar 2013 10:39:08 +0000 (UTC) Received: from CO9EHSMHS011.bigfish.com (unknown [10.236.132.254]) by mail3-co9.bigfish.com (Postfix) with ESMTP id 43AE4AC0050; Mon, 25 Mar 2013 10:39:08 +0000 (UTC) Received: from DB3PRD0310HT005.eurprd03.prod.outlook.com (157.56.252.5) by CO9EHSMHS011.bigfish.com (10.236.130.21) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 25 Mar 2013 10:39:07 +0000 Received: from [137.73.172.200] (137.73.172.200) by pod51013.outlook.com (10.255.44.40) with Microsoft SMTP Server (TLS) id 14.16.275.6; Mon, 25 Mar 2013 10:39:06 +0000 Message-ID: <51502949.6000903@kcl.ac.uk> Date: Mon, 25 Mar 2013 10:39:05 +0000 From: Tim Watts User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Stephen Frost CC: "pgsql-admin@postgresql.org" Subject: Re: Postgresql 8.4 GSSAPI auth with fallback to password prompting? References: <514AFB73.6050300@kcl.ac.uk> <5c910ac4f9fa4dc78f1ba6747182b671@DBXPRD0310HT003.eurprd03.prod.outlook.com> In-Reply-To: <5c910ac4f9fa4dc78f1ba6747182b671@DBXPRD0310HT003.eurprd03.prod.outlook.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [137.73.172.200] X-OriginatorOrg: kcl.ac.uk X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 24/03/13 18:47, Stephen Frost wrote: > Tim, > > * Tim Watts (tim.j.watts@kcl.ac.uk) wrote: >> Is it possible to specify GSSAPI auth (with MIT kerberos as the >> backend) but get Postgresql to fallback to prompting for a password >> if a kerberos ticket cannot be supplied by the client - eg because >> the client cannot do GSSAPI or because the client is not part of the >> kerberos realm? > > You're right- it's a 'no'. It would also really degrade the security > which you get with Kerberos as you'd undoubtably end up with clients > storing those passwords and using them routinely instead of using > Kerberos. > > Thanks, > > Stephen > Thank you Stephen, for confirming that. I would have to respectfully take another point of view: that that particular judgement is probably better placed with the sysadmin rather than a blanket decision by the devs. Reason: Whilst the argument is solid in an ideal world (all clients are part of the kerberos realm), in reality it means that I cannot gain partial security improvements and I have to leave it running with PAM auth which ensures that passwords are chucked around 100% of the time. My solution regarding scripts is that those *MUST* have a separate user account that is a member of "role_apps" and uses Postgresql local authentication. Those are expect to have passwords in config files, so the domain of attack is limited of the password leaks (one database is at risk typically). I definitely do not want user account passwords in config files. But it would be nice to be able to use kerberos tickets *where available* and fallback to password-interactive login where not. On about about 50% of the connections (those where a dev has ssh-ed into a server that is kerberized) they would not need to retype passwords, so the temptation to stuff them into .pgpass files would be much reduced :) Cheers :) Tim -- Tim Watts Tel (VOIP): +44 (0)1580 848360 Systems Manager Digital Humanities, King's College London Systems Messages and Notifications: https://systemsblog.cch.kcl.ac.uk/ Personal Blog: http://squiddy.blog.dionic.net/ http://www.sensorly.com/ Crowd mapping of 2G/3G/4G mobile signal coverage -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin