PQconnectdb question and md5 password

From: Guy Deleeuw <G(dot)De_Leeuw(at)eurofer(dot)be>
To: pgsql-admin(at)postgresql(dot)org
Subject: PQconnectdb question and md5 password
Date: 2008-05-06 10:07:30
Message-ID: 48202DE2.20805@eurofer.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

I don't know how can I pass a md5 password to the password field ?
example :
connInfo = "host=localhost port=5432 dbname=db_stats user=postgres
password=secret";
pConn = PQconnectdb(connInfo);

I try to replace the string 'secret' by the content of /etc/shadow but
without succès.

Thanks in advance

Guy

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marcelo Martins 2008-05-06 17:13:39 Re: PQconnectdb question and md5 password
Previous Message Shane Ambler 2008-05-06 09:08:56 Re: Postgresql Service Failed Error