Move passwords between databases

From: Raj Mathur <raju(at)linux-delhi(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Move passwords between databases
Date: 2003-06-16 13:41:27
Message-ID: 16109.51463.688614.39084@mail.linux-delhi.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)kandalaya(dot)org http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Raj Mathur 2003-06-16 14:35:44 Re: Move passwords between databases
Previous Message Bruno Wolff III 2003-06-16 11:46:42 Re: Timestamp of insertion of the row.