pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedcannot find pg_hba.conf file
7+ messages / 3 participants
[nested] [flat]
* cannot find pg_hba.conf file
@ 2009-09-29 19:19 Ramon Discua <rdiscua@rdscorporacion.com>
0 siblings, 1 reply; 7+ messages in thread
From: Ramon Discua @ 2009-09-29 19:19 UTC (permalink / raw)
To: pgsql-odbc
Hi, I am new to Postgres, so if the question is to basic I apologize. I am
trying to migrate from SqlBase to Postgres.
I am trying to connect a windows XP station to a Postgres database on a
Server machine. I installed the psqlodbc-08.04.0100-1 on the workstation and
configure it with the server, database, user and password, but when I test
the connection I get "FATAL: no pg_hba.conf entry for host...". However I
can not find this file to add the entry. The psqlOBDC setup did not create
this file. Where can I find this file in a Windows workstation , so I can
add the entry and the ODBC driver can read it ? The only postgres
installation done in the workstation is the ODBC driver.
Can anybody help me
Thanks in advance
^ permalink raw reply [nested|flat] 7+ messages in thread
* cannot find pg_hba.conf file
@ 2009-09-29 19:47 Ramon Discua <rdiscua@rdscorporacion.com>
0 siblings, 1 reply; 7+ messages in thread
From: Ramon Discua @ 2009-09-29 19:47 UTC (permalink / raw)
To: pgsql-odbc
Hi, I am new to Postgres, so if the question is to basic I apologize. I am
trying to migrate from SqlBase to Postgres.
I am trying to connect a windows XP station to a Postgres database on a
Server machine. I installed the psqlodbc-08.04.0100-1 on the workstation and
configure it with the server, database, user and password, but when I test
the connection I get "FATAL: no pg_hba.conf entry for host...". However I
can not find this file to add the entry. The psqlOBDC setup did not create
this file. Where can I find this file in a Windows workstation , so I can
add the entry and the ODBC driver can read it ? The only postgres
installation done in the workstation is the ODBC driver.
Can anybody help me
Thanks in advance
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: cannot find pg_hba.conf file
@ 2009-09-29 19:55 Richard Broersma <richard.broersma@gmail.com>
parent: Ramon Discua <rdiscua@rdscorporacion.com>
0 siblings, 1 reply; 7+ messages in thread
From: Richard Broersma @ 2009-09-29 19:55 UTC (permalink / raw)
To: Ramon Discua <rdiscua@rdscorporacion.com>; +Cc: pgsql-odbc
On Tue, Sep 29, 2009 at 12:47 PM, Ramon Discua
<rdiscua@rdscorporacion.com> wrote:
> but when I test
> the connection I get "FATAL: no pg_hba.conf entry for host...". However I
> can not find this file to add the entry.
Actually this file is located on the computer that PostgreSQL is
running on. The PostgreSQL server uses this file to determine it will
accept connections from a client host.
here is information about the file:
http://www.postgresql.org/docs/8.4/interactive/auth-pg-hba-conf.html
On my computer it is located here:
Directory of C:\Program Files\PostgreSQL\8.4\data
07/28/2009 01:16 PM 3,425 pg_hba.conf
1 File(s) 3,425 bytes
0 Dir(s) 14,203,064,320 bytes free
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: cannot find pg_hba.conf file
@ 2009-09-29 20:16 Ramon Discua <rdiscua@rdscorporacion.com>
parent: Richard Broersma <richard.broersma@gmail.com>
0 siblings, 1 reply; 7+ messages in thread
From: Ramon Discua @ 2009-09-29 20:16 UTC (permalink / raw)
To: 'Richard Broersma' <richard.broersma@gmail.com>; +Cc: pgsql-odbc
Thanks, know I understand the entry has to be added to server side not on
the client side. However this means that every time I add a user, that uses
my application from a different workstation I have to add the entry to the
pg_hba file on the server side? Is there a way to avoid this?
Thanks for your prompt response
Ramon
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Richard Broersma
Sent: Tuesday, September 29, 2009 1:56 PM
To: Ramon Discua
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] cannot find pg_hba.conf file
On Tue, Sep 29, 2009 at 12:47 PM, Ramon Discua
<rdiscua@rdscorporacion.com> wrote:
> but when I test
> the connection I get "FATAL: no pg_hba.conf entry for host...". However I
> can not find this file to add the entry.
Actually this file is located on the computer that PostgreSQL is
running on. The PostgreSQL server uses this file to determine it will
accept connections from a client host.
here is information about the file:
http://www.postgresql.org/docs/8.4/interactive/auth-pg-hba-conf.html
On my computer it is located here:
Directory of C:\Program Files\PostgreSQL\8.4\data
07/28/2009 01:16 PM 3,425 pg_hba.conf
1 File(s) 3,425 bytes
0 Dir(s) 14,203,064,320 bytes free
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: cannot find pg_hba.conf file
@ 2009-09-29 20:32 Richard Broersma <richard.broersma@gmail.com>
parent: Ramon Discua <rdiscua@rdscorporacion.com>
0 siblings, 1 reply; 7+ messages in thread
From: Richard Broersma @ 2009-09-29 20:32 UTC (permalink / raw)
To: Ramon Discua <rdiscua@rdscorporacion.com>; +Cc: pgsql-odbc
On Tue, Sep 29, 2009 at 1:16 PM, Ramon Discua
<rdiscua@rdscorporacion.com> wrote:
> However this means that every time I add a user, that uses
> my application from a different workstation I have to add the entry to the
> pg_hba file on the server side? Is there a way to avoid this?
Actually you don't need to put an entry for each users ip. The
pg_hba.conf allows you to accept a range of IP address that your users
client computers are assigned.
The quickest way to properly configure your pg_hba.conf file would be
to spend about ten minutes reading the online documentation:
http://www.postgresql.org/docs/8.4/interactive/auth-pg-hba-conf.html
Also notice the examples under Example 19-1. Example pg_hba.conf entries.
Reply back with any problems that you encounter after trying some of
the examples. A focused question is much more easy answer than
general one.
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: cannot find pg_hba.conf file
@ 2009-09-29 20:35 Ramon Discua <rdiscua@rdscorporacion.com>
parent: Richard Broersma <richard.broersma@gmail.com>
0 siblings, 0 replies; 7+ messages in thread
From: Ramon Discua @ 2009-09-29 20:35 UTC (permalink / raw)
To: 'Richard Broersma' <richard.broersma@gmail.com>; +Cc: pgsql-odbc
Again Thanks for the tip!
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Richard Broersma
Sent: Tuesday, September 29, 2009 2:32 PM
To: Ramon Discua
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] cannot find pg_hba.conf file
On Tue, Sep 29, 2009 at 1:16 PM, Ramon Discua
<rdiscua@rdscorporacion.com> wrote:
> However this means that every time I add a user, that uses
> my application from a different workstation I have to add the entry to the
> pg_hba file on the server side? Is there a way to avoid this?
Actually you don't need to put an entry for each users ip. The
pg_hba.conf allows you to accept a range of IP address that your users
client computers are assigned.
The quickest way to properly configure your pg_hba.conf file would be
to spend about ten minutes reading the online documentation:
http://www.postgresql.org/docs/8.4/interactive/auth-pg-hba-conf.html
Also notice the examples under Example 19-1. Example pg_hba.conf entries.
Reply back with any problems that you encounter after trying some of
the examples. A focused question is much more easy answer than
general one.
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: cannot find pg_hba.conf file
@ 2009-10-04 11:17 Hélder M. Vieira <hmv@mail.telepac.pt>
parent: Ramon Discua <rdiscua@rdscorporacion.com>
0 siblings, 0 replies; 7+ messages in thread
From: Hélder M. Vieira @ 2009-10-04 11:17 UTC (permalink / raw)
To: pgsql-odbc
Hi, I am new to Postgres, so if the question is to basic I apologize. I am
trying to migrate from SqlBase to Postgres.
I am trying to connect a windows XP station to a Postgres database on a
Server machine.
>I installed the psqlodbc-08.04.0100-1 on the workstation and configure it
>with the server, database, user and password, but when I test the
>connection
>I get "FATAL: no pg_hba.conf entry for host...". However I can not find
>this
>file to add the entry. The psqlOBDC setup did not create this file. Where
>can
>I find this file in a Windows workstation , so I can add the entry and the
>ODBC
>driver can read it ?
You won't find it in the workstation.
The ODBC driver is just showing you a message it received from the server.
When the server noticed the connection attempt, it tried to check two
things:
- If the client IP fits into one of the IP ranges defined by the
administrator as acceptable;
- What kind of authentication method the administrator chose for that
specific IP range.
Upon installation, the pg_hba.conf file will be in the 'data' folder, and
will be suitable for local connections. For remote connections, you'll have
to edit it according to the rules defined in the Postgres documentation (
chapter 19.1 ).
Regards,
Helder M. Vieira
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2009-10-04 11:17 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-09-29 19:19 cannot find pg_hba.conf file Ramon Discua <rdiscua@rdscorporacion.com>
2009-10-04 11:17 ` Hélder M. Vieira <hmv@mail.telepac.pt>
2009-09-29 19:47 cannot find pg_hba.conf file Ramon Discua <rdiscua@rdscorporacion.com>
2009-09-29 19:55 ` Richard Broersma <richard.broersma@gmail.com>
2009-09-29 20:16 ` Ramon Discua <rdiscua@rdscorporacion.com>
2009-09-29 20:32 ` Richard Broersma <richard.broersma@gmail.com>
2009-09-29 20:35 ` Ramon Discua <rdiscua@rdscorporacion.com>
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