Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Converting Berkeley DB to GNU dbm




On 9/3/2002, "A. Sajjad Zaidi" <sajjad@example.com> wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>An old server has qpopper setup so that passwords are stored in
>'Berkeley DB' format. Now I want to transfer these passwords to a new
>server with a newer version of qpopper (4.0.4).
>
>The file this new version created shows up as a
>'GNU dbm 1.x or ndbm database, little endian' file. Does anyone know of
>a way to convert the format of the old one to this new one?

If you can't find a customized tool, try hacking one together using the
DB_File and GDBM_File modules in perl. Tie the old password file to a
DB_File hash, tie the new password to a GDBM_File hash, do a
foreach(keys())
through the old file and populate the new file. Should work--in theory,
assuming that things like password encoding format haven't changed.

Shimpei.


-- 
Shimpei Yamashita
shimpei@example.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links