Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpB7l-0006wr-GL for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Sep 2016 09:25:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpB7k-0002rv-Ug for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Sep 2016 09:25:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpB7i-0002k2-MF for pgsql-hackers@postgresql.org; Wed, 28 Sep 2016 09:25:54 +0000 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bpB7b-00073B-Et for pgsql-hackers@postgresql.org; Wed, 28 Sep 2016 09:25:53 +0000 Received: by mail-lf0-x235.google.com with SMTP id b71so45802782lfg.0 for ; Wed, 28 Sep 2016 02:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=e5njrP7RAcr2WxcDSrroJcsEgcUnlu6cvz4neI1yy6w=; b=w3NiKr5iKSRLbjTnyL+/m64euR+HxCJCqQRzwM2V6ed+QSybK1ihRz08ubizaGX1So CclGUiH0ET503nek1UawD21iKt4gA9m2W/8YTqjsMJTeajbc0WNSxYu9xVzphNIPECHZ x49mAP5bDtPuTp0nTii4kEvCsfqzD3CCJJUnNzqTYExA2JgPRw5oifOaLG3TwAbiLF2j 5tIwHYX3S6DHL2wDLqpp7MPfz44eVj15Nb4XXW6uWdKeBVGAmpTRuPS/oNVfF/VJucRJ j8OqzDqrk+IsIPyAeza/lnCVu4lWSOiRglpDjGbMQyC6Pkk7T62fjUvsI/ebivkM+mUn 7V5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=e5njrP7RAcr2WxcDSrroJcsEgcUnlu6cvz4neI1yy6w=; b=bph/N/1aqPyH4s6mXxEaPewp6qSvkQH+bUFo1cLeKnPrhQJrMsH0dlAb/IzbVkAS1f O1V4gDPBWY5szvjGWbArHdRFbbMoPTrzZYsat5U4/zdiBsCRukJXIL7gUwzPVR+DIxA1 XRJvuMhLNE6jURtGipwz8KiYVoV0entgTJAJOkhFBUjokzWlyuEbRj+vh4YAlF5hHIp3 +y0dSth7dApvx32gBUni+7ZbYJonrxg/NHEwBxhxIdTFjZ8y83X8cumdb+dmA17xWn2U TA2zqx2WzBv/X4U0AAP3HY1kf4yXZ055MzAgYqVCWkFTgV+vzmIN+NQ3a5mVKo58q3FJ Vzaw== X-Gm-Message-State: AE9vXwMrad0z8MGtP9ikg8X1vIAONxSOLMN+kcvtIM8FMofzSAEgqb+dqS/iKBXYkruTyw== X-Received: by 10.25.28.140 with SMTP id c134mr11288373lfc.79.1475054745511; Wed, 28 Sep 2016 02:25:45 -0700 (PDT) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id u137sm1101498lja.16.2016.09.28.02.25.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Sep 2016 02:25:44 -0700 (PDT) Subject: Re: Password identifiers, protocol aging and SCRAM protocol To: Michael Paquier , David Steele References: <88f35221-2abd-6a31-a75d-28a3dc3a5b30@pgmasters.net> <29704.1469122290@sss.pgh.pa.us> <19611.1469144923@sss.pgh.pa.us> <20190.1469145748@sss.pgh.pa.us> <69938195-9c76-8523-0af8-eb718ea5b36e@iki.fi> <7fccb99f-8465-7ac8-72d5-3f41e90ae280@iki.fi> <47be24f5-12a5-7af8-efc0-9486a7dbd413@iki.fi> Cc: Tom Lane , Robert Haas , David Fetter , Alvaro Herrera , Magnus Hagander , Peter Eisentraut , Julian Markwort , Stephen Frost , PostgreSQL mailing lists , Valery Popov From: Heikki Linnakangas Message-ID: <21507128-dc47-fe39-e90c-1ac85ef80aa7@iki.fi> Date: Wed, 28 Sep 2016 12:25:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 09/26/2016 09:02 AM, Michael Paquier wrote: > On Mon, Sep 26, 2016 at 2:15 AM, David Steele wrote: >> * [PATCH 3/8] Switch password_encryption to a enum >> >> Does not apply on HEAD (98c2d3332): > > Interesting, it works for me on da6c4f6. > >> For here on I used 39b691f251 for review and testing. >> I seems you are keeping on/off for backwards compatibility, shouldn't >> the default now be "md5"? >> >> -#password_encryption = on >> +#password_encryption = on # on, off, md5 or plain > > That sounds like a good idea, so switched this way. Committed this patch in the series, to turn password_encryption GUC into an enum. There was one bug in the patch: if a plaintext password was given with CREATE/ALTER USER foo PASSWORD 'bar', but password_encryption was 'md5', it would incorrectly pass PASSWORD_TYPE_MD5 to the check-password hook. That would limit the amount of checking that the hook can do. Fixed that. Also edited the docs and comments a little bit, hopefully for the better. Once we get the main SCRAM patch in, we may want to remove the "on" alias altogether. We don't promise backwards-compatibility of config files or GUC values, and not many people set password_encryption=on explicitly anyway, since it's the default. But I kept it now, as there's no ambiguity on what "on" means, yet. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers