X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 090CC474E5C for ; Sun, 9 Feb 2003 12:16:34 -0500 (EST) Received: from web80310.mail.yahoo.com (web80310.mail.yahoo.com [66.218.79.26]) by postgresql.org (Postfix) with SMTP id 52C94474E44 for ; Sun, 9 Feb 2003 12:16:33 -0500 (EST) Message-ID: <20030209171638.39231.qmail@web80310.mail.yahoo.com> Received: from [63.91.172.194] by web80310.mail.yahoo.com via HTTP; Sun, 09 Feb 2003 09:16:38 PST Date: Sun, 9 Feb 2003 09:16:38 -0800 (PST) From: Carlos Ortiz Subject: Re: MD5 Passwords and user administratio To: Tom Lane Cc: pgsql-admin@postgresql.org In-Reply-To: <15243.1044760332@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/129 X-Sequence-Number: 7327 Thanx. Actually, it was a version problem. Was using 7.2 and it did not do that automatically. Spent some time and installed 7.3 from source yesterday. Thanx for the help Carlos --- Tom Lane wrote: > Carlos Ortiz writes: > > I am trying to figure out exactly how to set someone's password when > > using MD5 passwords in postgres. > > ALTER USER joe WITH PASSWORD 'secret'; > > > What exactly is psotgres passing to the MD5 hash to make up that > > incredible unintelligible stream of characters that it stores in the > > password field of the pg_shadow table? > > I think the salt is the username --- but you shouldn't write code that > depends on knowing that. None of the MD5 behavior is considered > user-visible. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com