From: Raj Mathur <raju@linux-delhi.org>
To: pgsql-admin@postgresql.org
Subject: Move passwords between databases
Date: Mon, 16 Jun 2003 19:11:27 +0530
Message-ID: <16109.51463.688614.39084@mail.linux-delhi.org> (raw)
Hi,
Using Postgresql 7.2.3 on Linux, is there an easy way to transfer user
passwords from one database to another?
I have an application that creates data (and users) centrally and then
distributes them to remote databases. I can transfer everything else,
but do not know how to transfer MD5 passwords.
As a last resort the application could store the passwords in
plain-text in the central database and then use a remote "alter user
with encrypted password..." command to update the user's password, but
I'd rather avoid that if there is any alternative available.
I tried an "update pg_shadow set passwd=... where usename=..."
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: raju@linux-delhi.org
Subject: Re: Move passwords between databases
In-Reply-To: <16109.51463.688614.39084@mail.linux-delhi.org>
References: <16109.51463.688614.39084@mail.linux-delhi.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox