pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Ellis <pvspam-postgres@hacklab.net>
To: Rob Abernethy IV <abernethy@dynedge.com>
Cc: postgresql <pgsql-admin@postgresql.org>
Subject: Re: Encrypted Passwords
Date: 13 Jan 2003 15:11:13 -0500
Message-ID: <1042488673.23675.215.camel@timetop> (raw)
In-Reply-To: <20030113104720.M77548@dynedge.com>
References: <20030110144927.M51502@dynedge.com>
	<20030110154754.M17846@dynedge.com>
	<20030113095352.M56045@dynedge.com>
	<25227.1042472298@sss.pgh.pa.us>
	<20030113104720.M77548@dynedge.com>

> The problem
> is that Tomcat computes the digest without a salt and, therefore,
> authentication is failing because the two digested versions of the same
> password are different.

If there is not a feature within Tomcat to allow adding the username as
a salt to the MD5 hash, then Tomcat is broken. This is so common, I
cannot imagine any product bothering to implement MD5 hashing without
allowing a fairly generic salting API call.

Thankfully, Tomcat comes with source, so it can be fixed if, indeed, it
is broken.

Do not waste any energy trying to get Postgres to not salt the hash,
you'd be using energy ruining one product instead of fixing another.

--
Tim Ellis
Senior Database Architect





view thread (7+ messages)

Message-ID: <1042488673.23675.215.camel@timetop>
Permalink:  ../1042488673.23675.215.camel@timetop/
Also on:    postgresql.org/message-id/1042488673.23675.215.camel@timetop

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pvspam-postgres@hacklab.net, abernethy@dynedge.com
  Subject: Re: Encrypted Passwords
  In-Reply-To: <1042488673.23675.215.camel@timetop>
  References: <20030110144927.M51502@dynedge.com> <20030110154754.M17846@dynedge.com> <20030113095352.M56045@dynedge.com> <25227.1042472298@sss.pgh.pa.us> <20030113104720.M77548@dynedge.com> <1042488673.23675.215.camel@timetop>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox