pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@gmail.com>
To: Marc Fromm <Marc.Fromm@wwu.edu>
Cc: postgresql@finner.de <postgresql@finner.de>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: first time odbc
Date: Wed, 30 Mar 2011 08:23:31 -0700
Message-ID: <4D934AF3.8040404@gmail.com> (raw)
In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu>
References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net>
	<93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu>
	<20110330061806.13f0a67f@isengard.finner.de>
	<93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu>

On 03/30/2011 07:54 AM, Marc Fromm wrote:
> I only want the users to read data, thus I removed superuser and applied grant select.
>
> If the listen_address is not a client filter, would it still be better to only have it listen to localhost and the few ip addresses that will need to odbc to the postgres database? Is it just not possible to assign listen_address = 'localhost, 1.ip.address, 2.ip.address'?

listen_address refers to the addresses available on the host. More than 
one assumes you have more than one IP address bound to the database 
host. You will not get the result you want using the method you propose 
above.

>
> One other thing still, if in the pg_hba.conf file I do not include any ip addresses I cannot connect to the database. If I enter just one ip address, any computer can connect to the database, even though some machines have static ip addresses and others have dhcp address from a completely different subnet. Do you know why this is? I figured the pg_hba.conf file controlled access by ip address, based on other googled articles.

pg_hba.conf works by first match wins. My guess is you have line above 
your IP line that is more permissive and is allowing connections. Per a 
previous post, you probably should spend some time with the manual to 
fully understand the interaction between the various security,access 
components of Postgres:)
>
> Thanks
>
>
-- 
Adrian Klaver
adrian.klaver@gmail.com



view thread (14+ messages)  latest in thread

Message-ID: <4D934AF3.8040404@gmail.com>
Permalink:  ../4D934AF3.8040404@gmail.com/
Also on:    postgresql.org/message-id/4D934AF3.8040404@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: adrian.klaver@gmail.com, Marc.Fromm@wwu.edu, postgresql@finner.de
  Subject: Re: first time odbc
  In-Reply-To: <4D934AF3.8040404@gmail.com>
  References: <29054973.1301422360902.JavaMail.root@elwamui-little.atl.sa.earthlink.net> <93361C67E4EE844A80935863A4FF4B6C04E60D02@Exch2010MB-2.univ.dir.wwu.edu> <20110330061806.13f0a67f@isengard.finner.de> <93361C67E4EE844A80935863A4FF4B6C04E612E0@Exch2010MB-2.univ.dir.wwu.edu> <4D934AF3.8040404@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox