Re: pg_hba.conf confusion

Поиск
Список
Период
Сортировка
От David M. Kaplan
Тема Re: pg_hba.conf confusion
Дата
Msg-id 3D0F5FA3.10903@ucdavis.edu
обсуждение исходный текст
Ответ на Re: pg_hba.conf confusion  (Reinhard Max <max@suse.de>)
Ответы Re: pg_hba.conf confusion  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
Thanks, that did fix that problem.  Now I have another one.  The line:

host    all    192.168.1.2    255.255.255.128    password

matches all ip addresses of the form 192.168.1.x.  If I change the mask
to 255.255.255.255 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 255.255.255.255, 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?

Thanks,
David


Reinhard Max wrote:

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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Ingo Ciechowski
Дата:
Сообщение: WHERE =NULL malfunction in release 7.2
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: WHERE =NULL malfunction in release 7.2