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.92) (envelope-from ) id 1jHZCS-0000H7-Gu for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 20:34:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHZCR-00062I-9U for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 20:33:59 +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 1jHZCQ-00062B-T6 for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 20:33:59 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:510a::3]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHZCN-0006B8-1c for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 20:33:57 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id 52F2AC0030C; Thu, 26 Mar 2020 21:33:51 +0100 (CET) Received: by elch.exwg.net (Postfix, from userid 1000) id 06A22139890; Thu, 26 Mar 2020 21:33:51 +0100 (CET) Date: Thu, 26 Mar 2020 21:33:51 +0100 From: Christoph Moench-Tegeder To: Ted To Cc: pgsql-general@lists.postgresql.org Subject: Re: Ident authentication failed Message-ID: <20200326203351.GA2460@elch.exwg.net> References: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> User-Agent: Mutt/1.13.4 (2020-02-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ## 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. You probably don't want "ident" authentication - that's the thing with "identd" (see RfC 1413), which even 20 years ago was only used in connection with IRC, but not really for "authentication". 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". See https://www.postgresql.org/docs/12/auth-methods.html and https://www.postgresql.org/docs/12/auth-pg-hba-conf.html . Note that "password_encryption" has to match that authentication method from pg_hba.conf, that's described in https://www.postgresql.org/docs/12/auth-password.html . Regards, Christoph -- Spare Space