Re: Authentification - Mailing list pgsql-novice

From Tom Lane
Subject Re: Authentification
Date
Msg-id 20728.1036950556@sss.pgh.pa.us
Whole thread Raw
In response to Authentification  (Thorsten Haude <postgresql@thorstenhau.de>)
List pgsql-novice
Thorsten Haude <postgresql@thorstenhau.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

pgsql-novice by date:

Previous
From: Thorsten Haude
Date:
Subject: Authentification
Next
From: Tim Wilson
Date:
Subject: Best practice for altering a table