Re: Authentification

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thorsten Haude <postgresql(at)thorstenhau(dot)de>
Cc: PostgreSQL Novice ML <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Authentification
Date: 2002-11-10 17:49:16
Message-ID: 20728.1036950556@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Thorsten Haude <postgresql(at)thorstenhau(dot)de> writes:
> create user inventuser with encrypted password 'secret';

> $connectString = "host=localhost dbname=inventory user=inventuser password=" . md5("secret");
> $dbh = pg_connect($connectString);

Not sure, but I think you should just say password=secret in the connect
parameters. The user isn't supposed to have to do the md5 translation
for himself.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tim Wilson 2002-11-11 04:34:09 Best practice for altering a table
Previous Message Thorsten Haude 2002-11-10 15:53:28 Authentification