encryption userPassword

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

 



On Wed, Mar 26, 2008 at 12:48:58PM +0100, Luigi Santangelo wrote:
> With FDS, I created the user red (password red) and this is the code 
> LDIF that I exported from FDS:
[snip]
> userPassword: {MD5}valkOsZgFyKijyOHFCdNpA==
[snip]
> But if I create, with the MD5sum utility, the MD5(red), I got 
> 1098e2cb1442f45f8ca2e74e1cd24bd0
> Why? It isn't the same algoritme? In the FDS I must have the same 
> value of MD5sum utility. How can I do?

Nothing's wrong.  The text "valkOsZgFyKijyOHFCdNpA==" is a
base64-encoded version of these bytes [1]:
  bd a9 64 3a c6 60 17 22 a2 8f 23 87 14 27 4d a4

You seem to have given the md5sum utility the text "red\n", which gives
me 1098e2cb1442f45f8ca2e74e1cd24bd0.  The md5sum of the text "red" is
actually bda9643ac6601722a28f238714274da4, which is what the directory
server stored.

Just a guess, but if you're using echo and piping the text through
"md5sum" on the command line to do the calculation, be sure you run echo
with the "-n" flag so that it doesn't append a newline to the output.
Then the results will match.

HTH,

Nalin

[1] "echo valkOsZgFyKijyOHFCdNpA== | openssl base64 -d | od -t x1"




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux