From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should
Date: Sun, 30 Oct 2022 09:22:53 -0700
Message-ID: <1d2c7784-66c1-34a3-1fbb-c5f2012b4d83@aklaver.com> (raw)
In-Reply-To: <Y16jb7tNR3G/dSd8@hermes.hilbert.loc>
References: <9801E977-425C-41BF-B024-19BC875940C0@icloud.com>
<b6bc9855-a4bb-d9a3-a60e-bf3bf6be9332@aklaver.com>
<C5AE5E6F-C584-42C9-A871-FD992BDB021C@yugabyte.com>
<CAKFQuwY1WNB=ikgazfriLg_TkJO_bQw36gAdhx7WN-OoGnsaSQ@mail.gmail.com>
<533103a6-044d-0047-91e8-9bcbce94b9a3@aklaver.com>
<Y16jb7tNR3G/dSd8@hermes.hilbert.loc>
On 10/30/22 09:16, Karsten Hilbert wrote:
> Am Sat, Oct 29, 2022 at 09:15:08PM -0700 schrieb Adrian Klaver:
>
>>> *# MAPNAME SYSTEM-USERNAME PG-USERNAME*
>>> *# ------- --------------- -----------
>>> bllewell mary mary
>>> *
>>>
>>>
>>> As has been said numerous times, it is utterly pointless to define a mapping like this
>>> - you get mary-is-mary for free just by saying peer.
>
> It certainly is but he probably did it just to check whether
> anything changes when another code path is run (the mapping)
> while the previously-working result (= successful login)
> should not change (mary is still mary). despite the
> additional code path.
Except the mapping was never in play as the map was not specified in
ph_hba.conf.
>
> It seems to be a way of bisecting in order to verify/falsify
> assumptions in his mental model.
>
> Karsten
> --
> GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, Karsten.Hilbert@gmx.net
Subject: Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should
In-Reply-To: <1d2c7784-66c1-34a3-1fbb-c5f2012b4d83@aklaver.com>
References: <9801E977-425C-41BF-B024-19BC875940C0@icloud.com> <b6bc9855-a4bb-d9a3-a60e-bf3bf6be9332@aklaver.com> <C5AE5E6F-C584-42C9-A871-FD992BDB021C@yugabyte.com> <CAKFQuwY1WNB=ikgazfriLg_TkJO_bQw36gAdhx7WN-OoGnsaSQ@mail.gmail.com> <533103a6-044d-0047-91e8-9bcbce94b9a3@aklaver.com> <Y16jb7tNR3G/dSd8@hermes.hilbert.loc> <1d2c7784-66c1-34a3-1fbb-c5f2012b4d83@aklaver.com>
* 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