From: reina_ga@hotmail.com
To: pgsql-admin@postgresql.org
Subject: Password with libpq
Date: 27 Jun 2004 10:13:54 -0700
Message-ID: <272e4be7.0406270913.7a65f99f@posting.google.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: reina_ga@hotmail.com
Subject: Re: Password with libpq
In-Reply-To: <272e4be7.0406270913.7a65f99f@posting.google.com>
References: <272e4be7.0406270913.7a65f99f@posting.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox