Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUaZV-0007EZ-Gt for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Nov 2019 18:07:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iUaZT-0006Gd-SY for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Nov 2019 18:07:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUaZT-0006GU-HY for pgsql-bugs@lists.postgresql.org; Tue, 12 Nov 2019 18:07:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iUaZR-0006yI-8E for pgsql-bugs@lists.postgresql.org; Tue, 12 Nov 2019 18:07:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xACI7Ehx020967; Tue, 12 Nov 2019 13:07:14 -0500 From: Tom Lane To: Magnus Hagander cc: Marcos David , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #16106: Patch - Radius secrets always gets lowercased In-reply-to: References: <16106-7d319e4295d08e70@postgresql.org> <19993.1573503787@sss.pgh.pa.us> <7942.1573576426@sss.pgh.pa.us> Comments: In-reply-to Magnus Hagander message dated "Tue, 12 Nov 2019 10:45:13 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20965.1573582034.1@sss.pgh.pa.us> Date: Tue, 12 Nov 2019 13:07:14 -0500 Message-ID: <20966.1573582034@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Magnus Hagander writes: > On Tue, Nov 12, 2019 at 10:33 AM Tom Lane wrote: >> However, while you can defeat the downcasing that way, you can't >> bypass the truncation to NAMEDATALEN. So it's arguably broken > I believe the RADIUS standard doesn't actually specify the length of the > key, so different implementations have different limits. For example > freeradius has 48 characters, cisco has 63. I agree that it's somewhat unlikely that truncation at 63 bytes would matter in practical use-cases, for any of these four parameters. Still, it's not a good thing, and the fix is trivial given that we have a suitable function at hand already. I'll try to improve the docs while I'm at it. regards, tom lane