Hi all,

> Well, there you are.  This perl module is not available.  Download the
> appropriate module from CPAN.

Finally got it working. Had to install MIME::Base64 and MD5. Here is the
perl script, I guess others may find it useful...

#!/usr/bin/perl
use MIME::Base64;
use MD5;
my $passwd = 'very_secret';
my $md5 = new MD5;
print "{MD5}" . encode_base64($md5->hash($passwd,''));


What confuses me is the output from this script is different from the one
produced by md5sum and the entry in shadow (with md5 passwords enabled).

And to top it all, the three outputs: viz. /etc/shadow, md5sum and this
perl script, ***don't*** match eachother... What the hell is happening
here? I guess I have to ask this on openldap mailing lists...

Regards,
Kedar.
----------------------------------------------------------------
Kedar N. Patankar.
Senior Software Engineer.
ishoni Networks
...Broadband for everyone
http://www.ishoni.com
email - [EMAIL PROTECTED]
Phone: +91-80-2292125 (Work)
Fax: +91-80-2995545 (Work)
----------------------------------------------------------------
Be regular and orderly in your life, so that you may be violent
and original in your work.


-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to