Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eANJPcA83552 for ; Thu, 23 Nov 2000 14:25:38 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from m1lw1.vsnl.net.in (lw1.vsnl.net.in [202.54.31.1] (may be forged)) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAKACss11571 for ; Mon, 20 Nov 2000 05:12:54 -0500 (EST) (envelope-from akacker@lw1.vsnl.net.in) Received: from tanya4 ([202.54.31.95]) by m1lw1.vsnl.net.in (8.9.3/8.9.3) with SMTP id PAA13516 for ; Mon, 20 Nov 2000 15:48:37 +0530 (IST) Message-ID: <000801c052da$d7520a00$0e09a8c0@tanya4> From: "akacker" To: Subject: Please help me with pg_hba.conf file settings Date: Mon, 20 Nov 2000 15:45:41 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C05308.EFA22A80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200011/149 X-Sequence-Number: 158 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C05308.EFA22A80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Sir Hello! I have a Linux web server on which I am providing name based hosting=20 services to my clients. I want that my clients who have their virtual sites on my server should be able to connect to their databases by using php or any other=20 server side programs to connect to postgresql database thourgh their password authentications. For this I edited the pg_hba.conf file of Postgresql which is at the=20 location /var/lib/pgsql/pg_hba.conf and I added the following lines at the bottom of this file using vi editor. host all 64.65.7.145 255.255.255.255 trust By adding the above file in pg_hba.conf file my clients are able to connect to their databases but even if they give any wrong password in their server side programs which they are using to connect to=20 their database they are able to access their databse. I tried adding the following lines to pg_hba.conf file : host all 64.65.7.145 255.255.255.255 password pgpass I created pgpass by the command pg_passwd pgpass and added the user (i.e my client username and password) but it did not work. though this way it is working fine on my local intranet which is on Linux. Please help me solve my problem. Regards ------=_NextPart_000_0005_01C05308.EFA22A80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Dear Sir
Hello!
I have a Linux web s= erver on=20 which I am providing name based hosting
services to my clients.
I wa= nt=20 that my clients who have their virtual sites on my server should
be able= to=20 connect to their databases by using php or any other
server side progra= ms to=20 connect to postgresql database thourgh their
password=20 authentications.
 
For this I edited the pg_hba.conf file of= =20 Postgresql which is at the
location /var/lib/pgsql/pg_hba.conf and I ad= ded=20 the following lines
at the bottom of this file using vi editor.
 
host all 64.65.7.145 255.255.255.255=20 trust
 
By adding the above file in pg_hba.conf fi= le my=20 clients are able to
connect to their databases but even if they give any= =20 wrong password
in their server side programs which they are using to con= nect=20 to
their database they are able to access their databse.
 
I tried adding the following lines to pg_h= ba.conf=20 file :
 
host all 64.65.7.145 255.255.255.255 passw= ord=20 pgpass
 
I created pgpass by the command pg_passwd = pgpass=20 and added
the user (i.e my client username and password) but it did=20 not
work. though this way it is working fine on my local intranet
whi= ch is=20 on Linux.
 
Please help me solve my=20 problem.
Regards
------=_NextPart_000_0005_01C05308.EFA22A80--