Re: pg_hba.conf and crypt/password - Mailing list pgsql-general

From Oliver Elphick
Subject Re: pg_hba.conf and crypt/password
Date
Msg-id 200103310759.f2V7xH327785@linda.lfix.co.uk
Whole thread Raw
In response to pg_hba.conf and crypt/password  (Jim Mercer <jim@reptiles.org>)
List pgsql-general
Jim Mercer wrote:
  >
  >i seem to recall setting this up before, but now i can't seem to
  >get passwords working the way i want.
  >
  >i'm running 7.0.3 on FreeBSD 4.3-RC.
  >
  >i've set the entry in pg_hba.conf to both "crypt" and "password".
  >
  >i've used "ALTER USER pgsql WITH PASSWORD 'test';
  >
  >regardless of "crypt" or "password", psql allows entry using "test".
  >
  >what i want is for the pg_shadow file to contain encrypted passwords like
  >/etc/passwd, and for the server to encrypt the plain text password handed
  >to it and compare with the crypto-gunge in pg_shadow.
  >
  >is this not what "crypt" is supposed to do?

'crypt' encrypts the password during transmission; apart from that there
is no difference from 'password'.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "If we confess our sins, he is faithful and just to
      forgive us our sins, and to cleanse us from all
      unrighteousness."           I John 1:9



pgsql-general by date:

Previous
From: will trillich
Date:
Subject: Re: function to operate on same fields, different records?
Next
From: Peter Eisentraut
Date:
Subject: Re: pg_hba.conf and crypt/password