Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opB5U-0007v3-32 for pgsql-general@arkaria.postgresql.org; Sun, 30 Oct 2022 16:23:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1opB5S-0002F7-GV for pgsql-general@arkaria.postgresql.org; Sun, 30 Oct 2022 16:23:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opB5R-0002As-8M for pgsql-general@lists.postgresql.org; Sun, 30 Oct 2022 16:23:02 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opB5N-00067g-Oh for pgsql-general@lists.postgresql.org; Sun, 30 Oct 2022 16:23:00 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 11F4232001BB; Sun, 30 Oct 2022 12:22:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 30 Oct 2022 12:22:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1667146974; x= 1667233374; bh=IJ4LlxuaU7CGpJxbwU2Z9VE2LP1Kj6tJjGvRivsNza0=; b=P I8P7kh12KXSQnlDMK8h8MkF8e6q82TIj6ATLpXymheP/s0tl8LgjzsV91ZbEifbo KrqH0s+0b3IlHkSW7XpbfxPor8LSdm5Y4IFLF7Lc5d/URsN5mzIS/3WDsz8PLe+s IG3CLvJhjJM6ck90BZIAQAFl4h7J6Y4YKtMXcf10Va+ePtnTZy2bw0mwj49BDIB2 F2Q8KxnYqq9sr70FFo7dy05eO144b5w8LSdSXYVryFrN2u1mg5dCOF4l2RTihD4O KK8o+TfyMCivSzgyXpXT6OtNaAZ881ANFK2icW2qGkuQnhYCWqqQbz5NV/AHIusj e55Zg9KkfKMMEPXVHTP3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1667146974; x=1667233374; bh=I J4LlxuaU7CGpJxbwU2Z9VE2LP1Kj6tJjGvRivsNza0=; b=jP/mBLbjnXF3AlZKC HG/f3oAbqZu/mcz5PNnrw6RpnGL3iIrlkfOlbvSf64+i7GhcH7lYiD0kQ+l/Zl2n c5BkfZxtW10xKNVrExc5eWRhNOk58LMqMlX1GQrHTWgeZJOY5+/eLjLW+CVqN75w S7Z4eahrtvDBcE7+bjvageETktAaEmggPv/6OQsYEGlUhKGc8LDbYfrVihtuB8pR 9JmWfdEkhPEDrJXCfYvR9e0DegXVpGF2srxGB5Lhl8bcny8WcHNNv/9N7cqUNKDp WhwuZ5M0xUEzj4pL6ekOc3UM4YBuz6ZKRrLjStammhr7eFQ7vY5fS5Bguqp9VVxT W4N6A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedruddtgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepvdettedttedvfeffteffgeejfedtgfduuedtveevgfet gfffgeevieffgedtfffgnecuffhomhgrihhnpegtohhnfhdrihhtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgv rhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 30 Oct 2022 12:22:53 -0400 (EDT) Message-ID: <1d2c7784-66c1-34a3-1fbb-c5f2012b4d83@aklaver.com> Date: Sun, 30 Oct 2022 09:22:53 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: "peer" authentication: cannot make "pg_ident.conf" work as I believe that the doc says that it should To: Karsten Hilbert , pgsql-general@lists.postgresql.org References: <9801E977-425C-41BF-B024-19BC875940C0@icloud.com> <533103a6-044d-0047-91e8-9bcbce94b9a3@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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