Re: pg_hba.conf

From: Tom Allison <tom(at)tacocat(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_hba.conf
Date: 2006-11-20 00:39:03
Message-ID: 4560F927.6070309@tacocat.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Tom Allison <tom(at)tacocat(dot)net> writes:
>> host all all 127.0.0.1/32 md5
>> hostssl all all 192.168.0.1/24 md5
> ^^^^^^^^^^^^^^
>
> That needs to be 192.168.0.0/24 ... as is, it won't match anything.
>
>> But I have a localhost client that can't log in because it keeps trying to
>> authenticate via SSL.
>

Sorry, I mixed it up.

Copying from the pg_hba.conf:

# Database administrative login by UNIX sockets
local all postgres ident sameuser

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host dbmail all 127.0.0.1/32 md5
host all all 192.168.1.0/24 md5
host all all 192.168.0.0/24 md5
# IPv6 local connections:
host all all ::1/128 md5

I would like to be able to set change the lines maching 192.168...
to

hostssl all all 192.168....

and set ssl=true in postgres.conf

But when I do, the localhost connections try to do ssl first and then fail.

Setting
hostnossl dbmail all 127.0.0.1/32 md5

didn't seem to help but I might have missed something at the time.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gurjeet Singh 2006-11-20 02:00:34 Re: Can't Create Tablespace On Windows 2003
Previous Message Tom Lane 2006-11-20 00:28:39 Re: pg_hba.conf