RE: pg_hba.conf question
От | Graham Vickrage |
---|---|
Тема | RE: pg_hba.conf question |
Дата | |
Msg-id | NDBBJABDILOPAOOMFJHOEEEOCHAA.graham@digitalplanit.com обсуждение исходный текст |
Ответ на | Re: pg_hba.conf question (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: pg_hba.conf question
|
Список | pgsql-admin |
I have tried entering the following as suggested: - local all reject host all 127.0.0.1 255.255.255.0 ident sameuser I have also tried local all reject host all 127.0.0.1 255.255.255.0 trust After trying the usual command %psql dbname to connect I keep getting the message No pg_hba.conf entry for host localhost, user postgres, database dbname Is there something obvious I am missing???? Thanks Graham -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: 29 January 2001 15:08 To: Graham Vickrage Cc: Postgres Admin Subject: Re: [ADMIN] pg_hba.conf question "Graham Vickrage" <graham@digitalplanit.com> writes: > I noticed that you can't use the 'ident sameuser' with local unix sockets, > what is the method of getting round this as I cant use trust for this > database? ident only works with TCP sockets. You could require people to connect to host localhost, ie, use a local TCP connection instead of a Unix socket. Set up 127.0.0.1 as ident sameuser and socket connections as reject in pg_hba.conf. regards, tom lane
В списке pgsql-admin по дате отправления: