X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1F13D32AA3A for ; Tue, 19 Oct 2004 19:22:54 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94708-05 for ; Tue, 19 Oct 2004 18:22:43 +0000 (GMT) Received: from hogranch.com (hogranch.com [66.117.128.240]) by svr1.postgresql.org (Postfix) with ESMTP id 15E4C32A517 for ; Tue, 19 Oct 2004 19:22:43 +0100 (BST) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id i9JIMXD13919; Tue, 19 Oct 2004 11:22:34 -0700 Message-ID: <41755B69.1030408@hogranch.com> Date: Tue, 19 Oct 2004 11:22:33 -0700 From: John R Pierce User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: owenn panng Cc: pgsql-jdbc@postgresql.org Subject: Re: converting to MD5 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/208 X-Sequence-Number: 11313 owenn panng wrote: > Hi there, I was wondering what is needed to done on both the postgres > & client side to connect via MD5. with 7.4.x and 8, at least, you don't need to do anything special, the client libraries take care of it transparently. the pg_shadow file is created automatically when you use ALTER USER username WITH ENCRYPTED PASSWORD 'password'; as a SQL statement. (actually, it appears it uses $PGDATA/global/pg_pwd for this if you don't specify anything else).