From: Bjørn T Johansen <btj@havleik.no>
To: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Authentication?
Date: Fri, 9 Mar 2018 09:25:05 +0100
Message-ID: <20180309092505.28f50377@pennywise-btj.brreg.no> (raw)
In-Reply-To: <20180307151934.GH2416@tamriel.snowman.net>
References: <20180307141339.37622a41@pennywise-btj.brreg.no>
<20180307151934.GH2416@tamriel.snowman.net>
On Wed, 7 Mar 2018 10:19:35 -0500
Stephen Frost <sfrost@snowman.net> wrote:
> 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
Ok, thx... Will check out GSSAPI/Kerberos instead... :)
BTJ
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: btj@havleik.no, sfrost@snowman.net
Subject: Re: Authentication?
In-Reply-To: <20180309092505.28f50377@pennywise-btj.brreg.no>
References: <20180307141339.37622a41@pennywise-btj.brreg.no> <20180307151934.GH2416@tamriel.snowman.net> <20180309092505.28f50377@pennywise-btj.brreg.no>
* 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