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 097339FB1C7 for ; Thu, 27 Jul 2006 06:25:44 -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 76001-08 for ; Thu, 27 Jul 2006 06:25:37 -0300 (ADT) X-Greylist: delayed 00:07:55.230374 by SQLgrey- Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by postgresql.org (Postfix) with ESMTP id 78AFB9FB1C6 for ; Thu, 27 Jul 2006 06:25:36 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id B0ED9778C4; Thu, 27 Jul 2006 11:27:36 +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 02970-10; Thu, 27 Jul 2006 11:27:35 +0200 (CEST) Received: from mailproxy.mosaic.de (proxy01.mosaic.de [172.17.201.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id CA9DB778B3; Thu, 27 Jul 2006 11:27:35 +0200 (CEST) Received: by mailproxy.mosaic.de (Postfix, from userid 10000) id 41D983A71B; Thu, 27 Jul 2006 11:25:34 +0200 (CEST) Received: from enterprise.mosaic-ag.com (enterprise.mosaic-ag.com [172.17.4.21]) by mailproxy.mosaic.de (Postfix) with ESMTP id 330743A719; Thu, 27 Jul 2006 11:25:34 +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:24:19 +0200 Message-ID: <44C8868C.8050001@mosaic-ag.com> Date: Thu, 27 Jul 2006 11:25:32 +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> <44C884B0.40007@mosaic-ag.com> In-Reply-To: <44C884B0.40007@mosaic-ag.com> Content-Type: multipart/alternative; boundary="------------070505040201090501070508" X-OriginalArrivalTime: 27 Jul 2006 09:24:19.0906 (UTC) FILETIME=[707F2220:01C6B15E] X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.349 tagged_above=0 required=5 tests=HTML_50_60, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200607/90 X-Sequence-Number: 15516 This is a multi-part message in MIME format. --------------070505040201090501070508 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Roland Walter schrieb: > 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. Bullshit, the documentation is here: http://www.postgresql.org/docs/7.4/interactive/functions-string.html -- 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. --------------070505040201090501070508 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Roland Walter schrieb:
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.

Bullshit, the documentation is here:

http://www.postgresql.org/docs/7.4/interactive/functions-string.html




-- 
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.


--------------070505040201090501070508--