Re: Ident authentication failed for user
| От | Ruben Blanco |
|---|---|
| Тема | Re: Ident authentication failed for user |
| Дата | |
| Msg-id | CAP4Xq2Emu0bJrmM=8P6rzaXs+49RCpPTrk14jJL4QX2qmMTPVg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Ident authentication failed for user (John R Pierce <pierce@hogranch.com>) |
| Ответы |
Re: Ident authentication failed for user
|
| Список | pgsql-general |
Hi John. Thanks a lot for your reply: El día 1 de marzo de 2012 17:25, John R Pierce <pierce@hogranch.com> escribió: > On 03/01/12 9:02 AM, Ruben Blanco wrote: > specify host=localhost, otherwise its using the first 'local' line, which > specifies 'ident' authentication, as the error implies. Where should I specify "host=localhost"? in the $connection_string for pg_connect()? It doesn't work either. I was understanding "host" TYPE was for TCP/IP connections only (my scripts run through Apache web server). That's why I didn't expect the "local" record to do anything with my connections. If I include this record in the "pg_hba.conf" file I can connect to the database: local all all trust > you do realize, trust lets any process on the localhost authenticate as any > user, including the postgres DBA account? Yes, I just want to make it run, then will tighten security measures. Thanks. > -- > john r pierce N 37, W 122 > santa cruz ca mid-left coast > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: