Re: Authentication Problems

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Authentication Problems
Дата
Msg-id Pine.LNX.4.30.0103141710510.1211-100000@peter.localdomain
обсуждение исходный текст
Ответ на Authentication Problems  ("Graham Vickrage" <graham@digitalplanit.com>)
Список pgsql-admin
Graham Vickrage writes:

> host         all         127.0.0.1           255.255.255.0        ident sameuser
> host         all         0.0.0.0              0.0.0.0 password
>
> I assumed that the above would solve my problem, which it only half manages.
> The local client connections are working correctly after putting
> PGHOST=localhost as an environment variable.
>
> HOWEVER when I connect via an internet site it will not allow a connection
> (password auth.), the error I get is: -
>
> DBI->connect failed: No pg_hba.conf entry for host localhost, user usr,
> database db

When the "internet site" is actually the localhost, then the first record
will match.  However, that record will not allow the connection because
"sameuser" is not the case.

> Is this because connections from the internet are currently being made as
> unix domain sockets instead of tcp/ip loopback via apache? If so how do I
> distinguish between internet and local connections.

If the connection is via Unix domain sockets, then you'd get a different
error message.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


В списке pgsql-admin по дате отправления:

Предыдущее
От: "John W Cunningham"
Дата:
Сообщение: Crash
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Crash