
November 25th, 2006, 04:09 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 1
Time spent in forums: 8 m 28 sec
Reputation Power: 0
|
|
Solution
Sorry for my English. I am Spanish.
When you change the METHOD in pg_hba.conf file, the password of users ares invalid with PASSWORD, CRYPT, MD5, ... methods.
After change pg_hba.conf, from localhost execute psql and do:
ALTER USER (username) WITH ENCRYPTED PASSWORD '(the password)'
And, PostGreSQL is all right.
Many people wrote about pg_hba.conf file, but they don't written about update all users passwords after do it.
It's work for psql client and jdbc.
Quote: | Originally Posted by ggnanaraj I have tested some java code to connect to PostgreSQL database using 'trust' relationship, which works.
However, when I change the pg_hba.conf to have 'password' or 'md5' or 'crypt', the connection fails with the above error. I am able to connect using 'psql' ...
Any ideas ??
Thanks. |
|