Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIhF0-0004QT-QV for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 23:21:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIhEy-0002Qx-Se for pgsql-general@arkaria.postgresql.org; Sun, 29 Mar 2020 23:21:16 +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 1jIhEy-0002Qq-Ki for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2020 23:21:16 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIhEu-0007yN-EU for pgsql-general@lists.postgresql.org; Sun, 29 Mar 2020 23:21:16 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id BB07619A2; Mon, 30 Mar 2020 01:21:09 +0200 (CEST) Date: Mon, 30 Mar 2020 01:21:09 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Ident authentication failed Message-ID: <20200329232109.GB11265@hjp.at> References: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> <20200326203351.GA2460@elch.exwg.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cmJC7u66zC7hs+87" Content-Disposition: inline In-Reply-To: <20200326203351.GA2460@elch.exwg.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cmJC7u66zC7hs+87 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-03-26 21:33:51 +0100, Christoph Moench-Tegeder wrote: > ## Ted To (ted@theo.to): > > Thank you -- I added two lines to the hba file to allow for ident > > authentication, restarted postgres and still the same errors. >=20 > You probably don't want "ident" authentication - that's the thing > with "identd" (see RfC 1413), Depends on the type of socket. For unix sockets it's the same as peer authentication. > which even 20 years ago was only used in connection with IRC, but not > really for "authentication". I don't think there are any linux distributions which install identd by default any more, so it wouldn't work anyway. > You'd rather want "scram-sha-256" as the authentication method (hoping > that whatever-go-uses can do that - come on, we got that in version 10), > or (if that's not possible) "md5". Actually, for local connections I prefer "peer". I'm already authenticated by the OS, no need for a (second) password. I should add that you shouldn't use "trust" unless=20 * no connection from other hosts is allowed, and * all users on this host should have full access anyway. This is rarely the case. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --cmJC7u66zC7hs+87 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl6BLWAACgkQ8g5IURL+ KF2apBAAg8SPW48dqmEB2mBK1IihU9nQZ1ccQYzm5+exidN0WfUBnsO1BfaFuk4+ HDtO2tm011REYcpf1FOEt/br404DSt8J4P7vQ7zWVo5lRQGHiCSCpicXMUK7BKX4 /BwnoLUOjWemIqLxilQy8iJB5XCd5B+d/BDQbYxGfvSjiiWtQ6mO/DxrFoBdUq0E NYA18HZRL+/nUg3Xc0ye69yxI5oBmdBXTRYKCYkby/mo4yt1aIA3Ketshrx7TlY1 p3zXn3eDlhaicDhXY5tHVFyArW3uctv3ot1ttyd7iIXXUR5iL9f2f29hAxJCn8ei 3FrMUPUBDHFT9pzsCZGuQm4TPMdFXgicR41mpzaPBwOja0jqohL8qfDewgBW/5HW HRmP8hse9v/jl1ev/p+SCjoSsVLkdeH8Qc+r3Sg1oU1PQOdu3ibpo84riukAK6ZX 4P/a1E6YLjhnar5/s7YXZjQLT6B5N7Q3rt+fycqCdtIgM+533ZdYAqdOYneLB9Tw C6M07IaDAs89Z+jxFuEUY1dv/t7Zilq9BEpuNqA8W4mMGxItzx0gwdQG0p/XZe1R obv+xQBiOdAlssCGbqx7GBVWsUxykF/iYtOASBUc5qXt6p7rNc5k9jesxK7Swq+y V28Z2T9dvvtPYZKptxI5mzaB/AbpfFFl9EtONTJ52pg0bT64+r4= =Gldd -----END PGP SIGNATURE----- --cmJC7u66zC7hs+87--