Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJKdO-0003L8-SS for pgsql-admin@arkaria.postgresql.org; Tue, 20 Dec 2016 13:39:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJKdO-0002bd-Fc for pgsql-admin@arkaria.postgresql.org; Tue, 20 Dec 2016 13:39:14 +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.84_2) (envelope-from ) id 1cJKbi-00007J-FQ for pgsql-admin@postgresql.org; Tue, 20 Dec 2016 13:37:30 +0000 Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=smadev.internal.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cJKbe-0001qg-R4 for pgsql-admin@postgresql.org; Tue, 20 Dec 2016 13:37:29 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id uBKDbNpE085032 for ; Tue, 20 Dec 2016 15:37:24 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Nesting records in pg_hba.conf To: pgsql-admin@postgresql.org References: From: Achilleas Mantzios Message-ID: <58593413.9070105@matrix.gatewaynet.com> Date: Tue, 20 Dec 2016 15:37:23 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 20/12/2016 14:12, Poul Kristensen wrote: > Hi ! > > Could anyone inform which records it is possible to nest the pg_hba.conf file? > > 1. My experience is that replication and local authentication can be active at the same time in pg_hba.conf, > pg_hba is consulted in a top->down fashion. If a certain line satisfies the criteria then this is chosen. Basically for every successful connection you have only one corresponding line in pg_hba.conf. It doesn't fall through. So you got only one "active" line. > 2. But my experience too is that when authentication through ldap is activated then only this is possible and NOT in combination with another active record. > > Does anyone agree with number 2.? > > Thanks > Poul > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin