Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UK8pP-00010F-UK for pgsql-admin@arkaria.postgresql.org; Mon, 25 Mar 2013 14:56:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UK8pP-00052o-CT for pgsql-admin@arkaria.postgresql.org; Mon, 25 Mar 2013 14:56:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UK8pN-000519-9a for pgsql-admin@postgresql.org; Mon, 25 Mar 2013 14:56:49 +0000 Received: from co9ehsobe005.messaging.microsoft.com ([207.46.163.28] helo=co9outboundpool.messaging.microsoft.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UK8pF-0002xR-No for pgsql-admin@postgresql.org; Mon, 25 Mar 2013 14:56:48 +0000 Received: from mail61-co9-R.bigfish.com (10.236.132.229) by CO9EHSOBE005.bigfish.com (10.236.130.68) with Microsoft SMTP Server id 14.1.225.23; Mon, 25 Mar 2013 14:56:38 +0000 Received: from mail61-co9 (localhost [127.0.0.1]) by mail61-co9-R.bigfish.com (Postfix) with ESMTP id 72E4A1C0087; Mon, 25 Mar 2013 14:56:38 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.253.37; KIP:(null); UIP:(null); IPV:NLI; H:DB3PRD0311HT002.eurprd03.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: -13 X-BigFish: PS-13(zzbb2dI98dId772h1432I616Rzz1f42h1ee6h1de0h1d18h1202h1e76h1d1ah1d2ahzz8275ch17326ahz2dh2a8h668h839h947hd25he5bhf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1765h18e1h190ch1946h19b4h19c3h19ceh1ad9h1b0ah1155h) Received: from mail61-co9 (localhost.localdomain [127.0.0.1]) by mail61-co9 (MessageSwitch) id 1364223396747332_28946; Mon, 25 Mar 2013 14:56:36 +0000 (UTC) Received: from CO9EHSMHS026.bigfish.com (unknown [10.236.132.239]) by mail61-co9.bigfish.com (Postfix) with ESMTP id AA95692004C; Mon, 25 Mar 2013 14:56:36 +0000 (UTC) Received: from DB3PRD0311HT002.eurprd03.prod.outlook.com (157.56.253.37) by CO9EHSMHS026.bigfish.com (10.236.130.36) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 25 Mar 2013 14:56:36 +0000 Received: from [137.73.122.214] (137.73.122.214) by pod51013.outlook.com (10.255.72.37) with Microsoft SMTP Server (TLS) id 14.16.275.6; Mon, 25 Mar 2013 14:56:32 +0000 Message-ID: <5150659E.8070401@kcl.ac.uk> Date: Mon, 25 Mar 2013 14:56:30 +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: Tom Lane CC: Stephen Frost , "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> <51502949.6000903@kcl.ac.uk> <20130325132557.GM4361@tamriel.snowman.net> <8661258abad94cca91cc7bd4d3d84b26@DBXPRD0310HT002.eurprd03.prod.outlook.com> In-Reply-To: <8661258abad94cca91cc7bd4d3d84b26@DBXPRD0310HT002.eurprd03.prod.outlook.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [137.73.122.214] 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 25/03/13 14:31, Tom Lane wrote: > Stephen Frost writes: >> * Tim Watts (tim.j.watts@kcl.ac.uk) wrote: >>> 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. > >> It's not a blanket decision by any means- the current situation is that >> such an option doesn't exist. It's not "it exists, but we disabled it >> because we felt like it." > >> Were someone to write the code to support such an option, it's entirely >> possible it'd get committed (though likely with strong caveats about its >> use in the documentation). > > I'm not sure it would. Allowing a fallback would amount to a protocol > change, meaning that old clients might fail in strange ways. You'd > need a lot stronger case than has been made here to justify dealing > with that. > Just had a look at a non SSL psql connection with wireshark: The username is offered. Then the server comes back with: "Type: Authentication request" "Authentication type: Plaintext password (3)" So clearly it's not as simple as the client offering what it feels like. And whilst I assume it might be possible for the server to have a new code for "Authentication type: GSSAPI with Password-Interactive-Fallback" that's not going to be implicitly backwardly compatible. Tricky I agree... I presume the protocol does not allow the server to send a succession of "Type: Authentication request" packets with different Authentication types until it deems that one is acceptable? BTW - I am not seriously proposing this - just for a bit of idea banter and better understanding by me. If you've all got better things to do, ignore me :-o 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/ "A fanatic is one who can't change his mind and won't change the subject." -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin