pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove one use of IDENT_USERNAME_MAX
Date: Wed, 30 Oct 2019 10:18:46 +0000
Message-ID: <E1iPl3u-0003IY-5Y@gemulon.postgresql.org> (raw)

Remove one use of IDENT_USERNAME_MAX

IDENT_USERNAME_MAX is the maximum length of the information returned
by an ident server, per RFC 1413.  Using it as the buffer size in peer
authentication is inappropriate.  It was done here because of the
historical relationship between peer and ident authentication.  To
reduce confusion between the two authenticaton methods and disentangle
their code, use a dynamically allocated buffer instead.

Discussion: https://www.postgresql.org/message-id/flat/c798fba5-8b71-4f27-c78e-37714037ea31%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5e1df951d9d70ab7d53ce47caaf73f3b2d6b1e1

Modified Files
--------------
src/backend/libpq/auth.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)



Message-ID: <E1iPl3u-0003IY-5Y@gemulon.postgresql.org>
Permalink:  ../E1iPl3u-0003IY-5Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iPl3u-0003IY-5Y@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Remove one use of IDENT_USERNAME_MAX
  In-Reply-To: <E1iPl3u-0003IY-5Y@gemulon.postgresql.org>
  References: <E1iPl3u-0003IY-5Y@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox