| От | reina_ga@hotmail.com (Tony Reina) |
|---|---|
| Тема | Password with libpq |
| Дата | |
| Msg-id | 272e4be7.0406270913.7a65f99f@posting.google.com обсуждение |
| Ответы |
Re: Password with libpq
|
| Список | pgsql-admin |
I'm setting my PostgreSQL server to demand md5 encrypted passwords from users. In my C programs (using libpq as the interface), it's no big deal to pass the password through PQconnectdb. However, what about in the general case where my client program doesn't know if a password is required or not. Is there any libpq function to query the server if a password is required? Perhaps, there's a return value for PQconnectdb which would tell me that the connection failed because of the password? (In which case, I can ask for the password and try the connection again.) Thanks. -Tony
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера