X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C261F9FB1C7 for ; Thu, 27 Jul 2006 06:40:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77895-06 for ; Thu, 27 Jul 2006 06:40:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by postgresql.org (Postfix) with ESMTP id 1BA899FB1C6 for ; Thu, 27 Jul 2006 06:40:47 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 427E6778BA; Thu, 27 Jul 2006 11:19:40 +0200 (CEST) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02836-20; Thu, 27 Jul 2006 11:19:39 +0200 (CEST) Received: from mailproxy.mosaic.de (proxy01.mosaic.de [172.17.201.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 5CB74778B3; Thu, 27 Jul 2006 11:19:39 +0200 (CEST) Received: by mailproxy.mosaic.de (Postfix, from userid 10000) id C694D3A71B; Thu, 27 Jul 2006 11:17:37 +0200 (CEST) Received: from enterprise.mosaic-ag.com (enterprise.mosaic-ag.com [172.17.4.21]) by mailproxy.mosaic.de (Postfix) with ESMTP id BAAD33A719; Thu, 27 Jul 2006 11:17:37 +0200 (CEST) Received: from [172.17.1.87] ([172.17.1.87]) by enterprise.mosaic-ag.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 27 Jul 2006 11:16:23 +0200 Message-ID: <44C884B0.40007@mosaic-ag.com> Date: Thu, 27 Jul 2006 11:17:36 +0200 From: Roland Walter User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Peter Neu Cc: pgsql-jdbc@postgresql.org Subject: Re: Simple way to manage users with JDBC/Servlets? References: <000001c6b158$f1ad9080$bcc8a8c0@PCMELZER> In-Reply-To: <000001c6b158$f1ad9080$bcc8a8c0@PCMELZER> Content-Type: multipart/alternative; boundary="------------070505020305010001020401" X-OriginalArrivalTime: 27 Jul 2006 09:16:23.0500 (UTC) FILETIME=[548958C0:01C6B15D] X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.865 tagged_above=0 required=5 tests=AWL, HTML_50_60, HTML_MESSAGE, HTML_TITLE_EMPTY, TRACKER_ID X-Spam-Level: X-Archive-Number: 200607/91 X-Sequence-Number: 15517 This is a multi-part message in MIME format. --------------070505020305010001020401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Peter Neu schrieb: > > > > Can the password be auto created by postgresql and converted in md5? > > > I would try to declare a server side function that generates the password from the name and set a default on the password column that uses this function. There is a md5() function declared in PostgreSQL. It is mentioned in the documentation for 8.1: http://www.postgresql.org/docs/8.1/interactive/functions-binarystring.html But not in the documentation for 7.4, but it is there. Tried it on 7.4.13 with select md5('admin001') and got 4eef1e1ea34879a2ae60c60815927ed9 BTW, you should update your database, at least to 7.4.13. Better would be 8.1.x. Regards, Roland. -- Roland Walter mailto: rwa (at) mosaic-ag (dot) com MOSAIC SOFTWARE AG phone: +49 (0) 22 25 / 88 2-44 9 Am Pannacker 3 fax: +49 (0) 22 25 / 88 2-20 1 D-53340 Meckenheim http://www.mosaic-ag.com Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte, vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt. Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte unverzueglich den Absender und vernichten Sie die E-Mail. This e-mail message and any attachment are intended exclusively for the named addressee. They may contain confidential information which may also be protected by professional secrecy. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use this message or any attachment or disclose the contents to anyone else. If this e-mail was sent to you by mistake please notify the sender immediately and delete this e-mail. --------------070505020305010001020401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Peter Neu schrieb:

 

Can the password be auto created by postgresql and converted in md5?

 

I would try to declare a server side function that generates the password from the name and set a default on the password column that uses this function.

There is a md5() function declared in PostgreSQL.

It is mentioned in the documentation for 8.1:

http://www.postgresql.org/docs/8.1/interactive/functions-binarystring.html

But not in the documentation for 7.4, but it is there. Tried it on 7.4.13 with

select md5('admin001')

and got

4eef1e1ea34879a2ae60c60815927ed9

BTW, you should update your database, at least to 7.4.13. Better would be 8.1.x.

Regards,
Roland.

-- 
Roland Walter                   mailto: rwa (at) mosaic-ag (dot) com
MOSAIC SOFTWARE AG               phone: +49 (0) 22 25 / 88 2-44 9
Am Pannacker 3                     fax: +49 (0) 22 25 / 88 2-20 1
D-53340 Meckenheim                http://www.mosaic-ag.com


Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte, vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt. Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte unverzueglich den Absender und vernichten Sie die E-Mail.

This e-mail message and any attachment are intended exclusively for the named addressee. They may contain confidential information which may also be protected by professional secrecy. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use this message or any attachment or disclose the contents to anyone else. If this e-mail was sent to you by mistake please notify the sender immediately and delete this e-mail.


--------------070505020305010001020401--