pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: Ted To <ted@theo.to>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Ident authentication failed
Date: Thu, 26 Mar 2020 21:33:51 +0100
Message-ID: <20200326203351.GA2460@elch.exwg.net> (raw)
In-Reply-To: <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to>
References: <bbe31397-27f5-d787-7e8b-e333ada38451@theo.to>
	<39f295ba-2e91-6219-e802-26679e221862@gmail.com>
	<3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to>

## 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





view thread (14+ messages)  latest in thread

Message-ID: <20200326203351.GA2460@elch.exwg.net>
Permalink:  ../20200326203351.GA2460@elch.exwg.net/
Also on:    postgresql.org/message-id/20200326203351.GA2460@elch.exwg.net

 · 

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-general@postgresql.org
  Cc: cmt@burggraben.net, ted@theo.to
  Subject: Re: Ident authentication failed
  In-Reply-To: <20200326203351.GA2460@elch.exwg.net>
  References: <bbe31397-27f5-d787-7e8b-e333ada38451@theo.to> <39f295ba-2e91-6219-e802-26679e221862@gmail.com> <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> <20200326203351.GA2460@elch.exwg.net>

* 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