Re: connecting to a remote pq always require a password

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: connecting to a remote pq always require a password
Дата
Msg-id h1hmkj$8i7$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на connecting to a remote pq always require a password  (David Shen <davidshen84@googlemail.com>)
Список pgsql-general
On 2009-06-18, David Shen <davidshen84@googlemail.com> wrote:
> Hi,
>
> I am trying to use the libpq to connect to my postgresql 8.3 server.
> If I use "dbname = mydb", the connection made successfully because I
> am using a socket connection. But if I use "host = 127.0.0.1 dbname =
> mydb", the error message is "no password supplied".
>
> In the pg_hba.conf file, I even change the host access control to this:
> host    all         all         127.0.0.1/32          trust
>
> but it still does not work. What I missed?

postgres doesn't know who you are! specify a user in the connection
string.

you can use "ident sameuser" over TCP connections but it is no more
secure than the originating host. (it works via RFC1413)


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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Disaster recovery (server died)
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: postgresql-8.3.7 unexpected connection closures