X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 94F07D1B27C for ; Sun, 27 Jun 2004 14:14:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32853-01 for ; Sun, 27 Jun 2004 17:14:01 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id E98E3D1B1D9 for ; Sun, 27 Jun 2004 14:14:00 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i5RHE0QC032890 for ; Sun, 27 Jun 2004 17:14:00 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i5RHDssa032880 for pgsql-admin@postgresql.org; Sun, 27 Jun 2004 17:13:54 GMT From: reina_ga@hotmail.com (Tony Reina) X-Newsgroups: comp.databases.postgresql.admin Subject: Password with libpq Date: 27 Jun 2004 10:13:54 -0700 Organization: http://groups.google.com Lines: 13 Message-ID: <272e4be7.0406270913.7a65f99f@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/347 X-Sequence-Number: 14007 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