Skip site navigation (1) Skip section navigation (2)

Re: pg_hba.conf confusion

From: "David M(dot) Kaplan" <dmkaplan(at)ucdavis(dot)edu>
To: Reinhard Max <max(at)suse(dot)de>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_hba.conf confusion
Date: 2002-06-18 16:28:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Thanks, that did fix that problem.  Now I have another one.  The line:

host    all    password

matches all ip addresses of the form 192.168.1.x.  If I change the mask 
to it no longer matches all addresses.  Although this 
fixes the problem, it seems strange to me that it works this way. 
 Basically, if mask is something other than, you might 
as well put 0's in your id address.  This doesnt seem to be how subnet 
masks normally work and it seems redundant to me.  

Is there something I don't understand?


Reinhard Max wrote:

>On Mon, 17 Jun 2002 at 20:47, David M. Kaplan wrote:
>>host       all    ident    sameuser
>If you want this entry to match only the loopback device, the mask has
>to be instead of A mask of causes
>*all* IP addresses to match this line.
>	Reinhard

In response to


pgsql-bugs by date

Next:From: Bruce MomjianDate: 2002-06-18 16:42:36
Subject: Re: pg_hba.conf confusion
Previous:From: Reinhard MaxDate: 2002-06-18 15:11:40
Subject: Re: pg_hba.conf confusion

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group