Migrate passwords from shadow to mysql
Ted Cabeen
secabeen at pobox.com
Thu Jan 22 20:06:36 EST 2004
Ken Murchison <ken at oceana.com> writes:
> Shelley Waltz wrote:
>
>> I am installing a new postfix-cyrus mail server.
>> I currently have cyrus-imap 1.6.24 authing PLAIN
>> from /etc/shadow.
>> I wish to migrate the passwords(md5) from the shadow file to
>> a mysql database and use this to auth PLAIN using TLS.
>> Is there a script available to do so - to migrate the users
>> from the shadow file and create the records for mysql authentication?
>> I did search, but found nothing.
>
> First, I'd strongly suggest that you upgrade to a recent version of
> Cyrus, either 2.1.16 or 2.2.3. To do this, you'll need a recent
> version of SASL (I'd suggest 2.1.17). Then, you just configure
> Cyrus/SASL to authentication plaintext from /etc/shadow and have it
> autotransition passwords into the SQL auxprop plugin.
That works? Cool!
Will that store plaintext passwords in the SQL database, or will it
store them encrypted?
--
Ted Cabeen http://www.pobox.com/~secabeen ted at impulse.net
Check Website or Keyserver for PGP/GPG Key BA0349D2 secabeen at pobox.com
"I have taken all knowledge to be my province." -F. Bacon secabeen at cabeen.org
"Human kind cannot bear very much reality."-T.S.Eliot cabeen at netcom.com
More information about the Info-cyrus
mailing list