Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BAF60475EA9 for ; Mon, 13 Jan 2003 10:47:17 -0500 (EST) Received: from localhost.localdomain (thompsonmccully.com [63.215.160.3]) by postgresql.org (Postfix) with ESMTP id 1E5B24758F1 for ; Mon, 13 Jan 2003 10:47:17 -0500 (EST) Received: from dynedge.com (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id h0DFlKY22179 for ; Mon, 13 Jan 2003 09:47:20 -0600 From: "Rob Abernethy IV" To: "postgresql" Subject: Re: Encrypted Passwords Date: Mon, 13 Jan 2003 10:47:20 +0800 Message-Id: <20030113104720.M77548@dynedge.com> In-Reply-To: <25227.1042472298@sss.pgh.pa.us> References: <20030110144927.M51502@dynedge.com> <20030110154754.M17846@dynedge.com> <20030113095352.M56045@dynedge.com> <25227.1042472298@sss.pgh.pa.us> X-Mailer: Open WebMail 1.64 20020419 X-OriginatingIP: 24.208.224.236 (abernethy@dynedge.com) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/122 X-Sequence-Number: 6964 Well, actually I *do* want to. My goal is to be able to use my existing set of database users to authenticate to web apps running in Tomcat. Tomcat allows you to set up a JDBC Realm for authentication, which lets you connect to a database and use usernames and passwords from that database. 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. Has anyone else used postgres to set up a JDBC Realm? Can anyone suggest any alternatives? -- Robert Abernethy IV Dynamic Edge, Inc. 734.975.0460 > "Rob Abernethy IV" writes: > > Can you tell postgres *NOT* to use a salt when calculating the MD5 > > digest? > > No, and you wouldn't want to. The salt is an essential security > feature. > > regards, tom lane