Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euDKx-0000wj-S5 for pgsql-general@arkaria.postgresql.org; Fri, 09 Mar 2018 08:25:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euDKw-0001OR-O3 for pgsql-general@arkaria.postgresql.org; Fri, 09 Mar 2018 08:25:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euDKw-0001OE-Fl for pgsql-general@lists.postgresql.org; Fri, 09 Mar 2018 08:25:10 +0000 Received: from smtp.nspdc.no ([185.161.76.37]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euDKt-0006gp-45 for pgsql-general@lists.postgresql.org; Fri, 09 Mar 2018 08:25:09 +0000 Date: Fri, 9 Mar 2018 09:25:05 +0100 From: =?UTF-8?B?QmrDuHJu?= T Johansen To: Stephen Frost Cc: "pgsql-general@lists.postgresql.org" Subject: Re: Authentication? Message-ID: <20180309092505.28f50377@pennywise-btj.brreg.no> In-Reply-To: <20180307151934.GH2416@tamriel.snowman.net> References: <20180307141339.37622a41@pennywise-btj.brreg.no> <20180307151934.GH2416@tamriel.snowman.net> Organization: Havleik Consulting X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 7 Mar 2018 10:19:35 -0500 Stephen Frost wrote: > Greetings, >=20 > * Bj=C3=B8rn 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 ? =20 >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Thanks! >=20 > Stephen Ok, thx... Will check out GSSAPI/Kerberos instead... :) BTJ