X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4FF124753A1 for ; Sat, 8 Feb 2003 22:12:09 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 91BFE474E5C for ; Sat, 8 Feb 2003 22:12:08 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h193CC5u015244; Sat, 8 Feb 2003 22:12:12 -0500 (EST) To: Carlos Ortiz Cc: pgsql-admin@postgresql.org Subject: Re: MD5 Passwords and user administratio In-reply-to: <20030208221953.62165.qmail@web80312.mail.yahoo.com> References: <20030208221953.62165.qmail@web80312.mail.yahoo.com> Comments: In-reply-to Carlos Ortiz message dated "Sat, 08 Feb 2003 14:19:53 -0800" Date: Sat, 08 Feb 2003 22:12:12 -0500 Message-ID: <15243.1044760332@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/128 X-Sequence-Number: 7326 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