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

Can't connect Win XP client to Linux server

From: Geoff Lane <geoff(at)gjctech(dot)co(dot)uk>
To: PostgreSQL ODBC <pgsql-odbc(at)postgresql(dot)org>
Subject: Can't connect Win XP client to Linux server
Date: 2009-05-19 19:48:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
Sorry for a complete newbie question.

I've just started experimenting with PostgreSQL and managed to get the
server running under CentOS 5.3. However, things didn't go smoothly
and it took a while to figure out that I needed to su to root, then su
to postgres before I could create roles for root and for my normal
login. Having done that for both as superusers, I can now define and
manipulate data via psql (version 8.1.11). For info, I installed
PostgreSQL on the server via the CentOS packet manager.

However, I cannot connect to this server from a Windows XP client
using either the ANSI or Unicode drivers. At first, I got
the response:
    Could not connect to the server;
    No connection could be made because the target machine actively
    refused it.
when I click the Test button.

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
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
    host  all  all  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.

I've tried searching through the docs, FAQ's and the archives of this
list but failed to find a solution (although that could be due to not
knowing the most appropriate search terms!)

Can someone give me a few pointers?


Geoff Lane


pgsql-odbc by date

Next:From: Raymond O'DonnellDate: 2009-05-19 20:12:42
Subject: Re: Can't connect Win XP client to Linux server
Previous:From: Rainer BauerDate: 2009-05-19 16:43:24
Subject: Re: How can I bind query parameters to variables ?

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