| От | Tom Lane |
|---|---|
| Тема | Re: Using dblink to connect as non-superuser |
| Дата | |
| Msg-id | 21302.1226525575@sss.pgh.pa.us обсуждение |
| Ответ на | Using dblink to connect as non-superuser (Robert Fitzpatrick <lists@webtent.net>) |
| Список | pgsql-general |
Robert Fitzpatrick <lists@webtent.net> writes:
> I try to use dblink_connect while logged into the database as the
> superuser and it returns OK, but if I disconnect and use the same
> command as follows, it give and error, password is required. Even if I
> try to use the superuser login in the connect string below while
> connected as a non-superuser, I get the error...
This probably means that the remote database is not in fact prompting
for a password on this connection. For security reasons dblink wants
non-superuser callers to supply a password that actually gets used
--- otherwise they are effectively able to masquerade as the local
superuser to the remote database.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера