pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Bjørn T Johansen <btj@havleik.no>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Authentication?
Date: Wed, 7 Mar 2018 10:19:35 -0500
Message-ID: <20180307151934.GH2416@tamriel.snowman.net> (raw)
In-Reply-To: <20180307141339.37622a41@pennywise-btj.brreg.no>
References: <20180307141339.37622a41@pennywise-btj.brreg.no>

Greetings,

* Bjørn T Johansen (btj@havleik.no) wrote:
> Is it possible to use one authentication method as default, like LDAP, and if the user is not found, then try to authenticate using
> md5/scram-sha-256 ?

Not directly in pg_hba.conf.  You might be able to construct a system
which works like this using PAM though, but it wouldn't be much fun.

LDAP use really should be discouraged as it involves sending the
password to the PG server.  If you are operating in an active directory
environment then you should be using GSSAPI/Kerberos.

SCRAM is a good alternative as it doesn't send the password to the
server either, though that is only available in PG10, of course.

Thanks!

Stephen




view thread (13+ messages)  latest in thread

Message-ID: <20180307151934.GH2416@tamriel.snowman.net>
Permalink:  ../20180307151934.GH2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180307151934.GH2416@tamriel.snowman.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: sfrost@snowman.net, btj@havleik.no
  Subject: Re: Authentication?
  In-Reply-To: <20180307151934.GH2416@tamriel.snowman.net>
  References: <20180307141339.37622a41@pennywise-btj.brreg.no> <20180307151934.GH2416@tamriel.snowman.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