X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 724BF30EF4C for ; Tue, 17 Jun 2003 03:03:24 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 30166-03 for ; Tue, 17 Jun 2003 00:03:13 -0300 (ADT) Received: from ns3.biznetindia.com (unknown [203.200.89.83]) by svr1.postgresql.org (Postfix) with ESMTP id 5268830F049 for ; Tue, 17 Jun 2003 00:03:12 -0300 (ADT) Received: from mail.linux-delhi.org ([203.122.36.68]) by ns3.biznetindia.com (8.12.8/8.12.5) with ESMTP id h5H337gC013246 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Tue, 17 Jun 2003 08:33:10 +0530 Received: from mail.linux-delhi.org (localhost [127.0.0.1]) by mail.linux-delhi.org (8.12.8/8.12.5) with ESMTP id h5H337WJ011077 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 17 Jun 2003 08:33:07 +0530 Received: (from raju@localhost) by mail.linux-delhi.org (8.12.8/8.12.8/Submit) id h5H337RB011073; Tue, 17 Jun 2003 08:33:07 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16110.34026.781292.743750@mail.linux-delhi.org> Date: Tue, 17 Jun 2003 08:33:06 +0530 To: pgsql-admin@postgresql.org Subject: Re: Move passwords between databases In-Reply-To: <6159.1055791653@sss.pgh.pa.us> References: <16109.51463.688614.39084@mail.linux-delhi.org> <2913.1055774886@sss.pgh.pa.us> <16109.59426.74922.358335@mail.linux-delhi.org> <6159.1055791653@sss.pgh.pa.us> X-Mailer: VM 7.07 under 21.4 (patch 8) "Honest Recruiter" XEmacs Lucid From: Raj Mathur X-Archive-Number: 200306/185 X-Sequence-Number: 9176 >>>>> "Tom" == Tom Lane writes: Tom> Raj Mathur writes: >> mdu=# alter user raju with encrypted password 'raju'; ALTER >> USER mdu=# select passwd from pg_shadow where usename='raju'; >> passwd >> ------------------------------------- >> md5ef70c430d5ed1ed52bd2ae960bb8ebe4 (1 row) >> mdu=# create user xxx with password >> 'md5ef70c430d5ed1ed52bd2ae960bb8ebe4'; CREATE USER Tom> That's not going to work, because the user name is included Tom> into the password encryption algorithm, so two different Tom> usernames with the same cleartext password are going to have Tom> two different encrypted passwords. (This is a feature, not a Tom> bug.) Oooh, that's what I was missing then. Tom> You can transfer the same usernames with the same passwords Tom> from one system to another using the method shown above. You Tom> cannot assign one user's password to another username this Tom> way. Great, it works now. Thanks! Both PostgreSQL and you guys rock! Regards, -- Raju -- Raj Mathur raju@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves