Hello...
This is slightly off topic, but I thought this would be the best place
to get a correct answer. I am installing cyrus-imapd, cyrus-sasl, and
using MySQL as a backend user/passwd database. I ran across a perl
program that would do the imapd<-->sql auth portion. The default setup
for this program is to use md5_base64 as the crypted passwd format in my
sql table. I need to initialize the user/passwd data base with the
existing data from my current /etc/passwd file (linux). I believe this
is des crypt format, yes? Moving to a more secure MD5 crypt would
probably be a good move though. I would like to modify the perl program
to be as portable as possible. It should to be able to distinguish what
the crypt format is so that legacy accounts still work, new MD5 format
accounts work, and any other unix passwd crypt formats work.
So my question is: Is there a easy algorithm to check the crypt type
based to something simple? length? initial characters?
my current (des ?) crypt strings are 13 characters
newer machine (MD5 ?) crypt strings are 35 characters and start with $1$
others for *BSD and Solaris ?
is this enough to distinguish them?
TIA
--
Christopher McCrory
Lead Bithead, Netus Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Good morning, doctors. I have taken the liberty of removing
Windows 95 from my hard drive."
--Arthur C. Clake, on what he imagines HAL's first words to be
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]