Re: pg_hba.conf and crypt/password

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Jim Mercer <jim(at)reptiles(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_hba.conf and crypt/password
Date: 2001-03-31 07:59:15
Message-ID: 200103310759.f2V7xH327785@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)Elphick(at)lfix(dot)co(dot)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

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-31 08:31:36 Re: pg_hba.conf and crypt/password
Previous Message Richard Huxton 2001-03-31 07:16:21 Re: Data access permission?