pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Ident authentication failed
Date: Mon, 30 Mar 2020 01:21:09 +0200
Message-ID: <20200329232109.GB11265@hjp.at> (raw)
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>

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.
> 
> 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 
* no connection from other hosts is allowed, and
* all users on this host should have full access anyway.
This is rarely the case.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (14+ messages)

Message-ID: <20200329232109.GB11265@hjp.at>
Permalink:  ../20200329232109.GB11265@hjp.at/
Also on:    postgresql.org/message-id/20200329232109.GB11265@hjp.at

 · 

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: hjp-pgsql@hjp.at
  Subject: Re: Ident authentication failed
  In-Reply-To: <20200329232109.GB11265@hjp.at>
  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> <20200329232109.GB11265@hjp.at>

* 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