Re: Can't connect Win XP client to Linux server - Mailing list pgsql-odbc

From Raymond O'Donnell
Subject Re: Can't connect Win XP client to Linux server
Date
Msg-id 4A1312BA.5040601@iol.ie
Whole thread Raw
In response to Can't connect Win XP client to Linux server  (Geoff Lane <geoff@gjctech.co.uk>)
Responses Re: Can't connect Win XP client to Linux server  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-odbc
On 19/05/2009 20:48, Geoff Lane wrote:
> I can telnet onto the server and run the psql client in a telnet
> session as the user I'm trying to connect as. I suspected I needed to
> tweak the server to permit connections from remote clients but had no
> idea how to do that other than set listen_addresses = '*' in

Yes, that's exactly it - it listens only on localhost out of the box.

> postgresql.conf. Having done that, I got another error message telling
> me there wasn't an entry in pg_hba.conf. So to that file, I added the
> line:

That trips most people new to Postgres. :-)

>     host  all  all  192.168.42.0/24  md5
> and after rebooting the server got the error:
>   FATAL: password authentication failed for user "geoff"
> I changed "md5" to "password" and rebooted the server but to no avail.
> However, connection was successful when I changed "password" to
> "trust" - but I'm uneasy about that level of security and would prefer
> full authentication.

Are you supplying the correct username/password combination in the ODBC
connection? - It sounds like this sort of a problem.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-odbc by date:

Previous
From: Geoff Lane
Date:
Subject: Can't connect Win XP client to Linux server
Next
From: Tom Lane
Date:
Subject: Re: Can't connect Win XP client to Linux server