Re: Password authentication confusion.

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Password authentication confusion.
Date: 2003-05-23 04:06:57
Message-ID: 200305230406.h4N46vD08203@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


md5 is double-encrypted from the client, once with the username as salt,
and a second time with random salt. The password is stored in the
server using the username only as salt. That's how we can do it so
sniffing doesn't help over the wire. crypt uses a random salt, but
doesn't encrypt when stored in the server.

---------------------------------------------------------------------------

Kurt Roeckx wrote:
> I was just reading the manual on password authentication and
> encryption.
>
> In pg_hba.conf you can say either "password", "md5", or "crypt",
> and says that controls how it goes over the line.
>
> In create/alter user you can say "encrypted" or "unencrypted",
> and it will be stored like that in the database.
>
> Is there some kind of challenge used in case the authentication
> is using md5/crypt? In case of password too if it's stored
> encrypted?
>
> Is the only case that it doesn't use a challenge maybe the case
> it's stored unencrypted and authentication method is password?
>
>
> Kurt
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2003-05-23 05:27:49 Re: Text format protocol representation
Previous Message Bruce Momjian 2003-05-23 04:02:51 Re: Missing EAI_ADDRFAMILY