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 1etals-0001AZ-IL for pgsql-general@arkaria.postgresql.org; Wed, 07 Mar 2018 15:14:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etalr-0004Tj-HO for pgsql-general@arkaria.postgresql.org; Wed, 07 Mar 2018 15:14:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etalr-0004Ta-6s for pgsql-general@lists.postgresql.org; Wed, 07 Mar 2018 15:14:23 +0000 Received: from smtp.nspdc.no ([185.161.76.37]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etali-0000nB-T9 for pgsql-general@lists.postgresql.org; Wed, 07 Mar 2018 15:14:22 +0000 Date: Wed, 7 Mar 2018 16:14:11 +0100 From: =?UTF-8?B?QmrDuHJu?= T Johansen To: "David G. Johnston" Cc: "pgsql-general@lists.postgresql.org" Subject: Re: Authentication? Message-ID: <20180307161411.6825f466@pennywise-btj.brreg.no> In-Reply-To: References: <20180307141339.37622a41@pennywise-btj.brreg.no> 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 07:14:55 -0700 "David G. Johnston" wrote: > On Wed, Mar 7, 2018 at 6:13 AM, Bj=C3=B8rn T Johansen wr= ote: >=20 > > Hi. > > > > 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 > =E2=80=8BIn the "Client Authentication" Chapter:=E2=80=8B >=20 > =E2=80=8Bhttps://www.postgresql.org/docs/10/static/auth-pg-hba-conf.html= =E2=80=8B >=20 > =E2=80=8B""" > =E2=80=8BThe first record with a matching connection type, client address, > requested database, and user name is used to perform authentication. There > is no =E2=80=9Cfall-through=E2=80=9D or =E2=80=9Cbackup=E2=80=9D: if one = record is chosen and the > authentication fails, subsequent records are not considered. If no record > matches, access is denied. > """ >=20 > David J. I was hoping I had misunderstood but ok.. :) BTJ