[Pauldotcom] OpenLDAP userPassword field
karl.schuttler at gmail.com
Thu Jun 10 17:38:28 UTC 2010
Use his source code?
On Wed, Jun 9, 2010 at 9:04 PM, David Porcello
<DPorcello at vermontmutual.com> wrote:
> Hi all,
> Does anyone know of a way to decode OpenLDAP's non-salted userPassword values from this:
> To this? (the underlying SHA hash):
> I know it needs to be base64 decoded to hex bytes, but I can't figure out how to do this without base64 decoding to ASCII first, then converting that to hex:
> echo -n W6ph5Mm5Pz8GgiULbPgzG37mj9g= |base64 -d - |hexdump -e '/1 "%x" '
> The problem with decoding to ASCII first is some of the output is control chars, such as line breaks, which hexdump isn't handling properly:
> What I'm hoping for:
> What hexdump is giving me:
> 5baa61e4c9b93f* 68225 b6cf8331b7ee68fd8
> As you can see parts of the hash are lost in translation. I've been working on this for weeks and I'm out of ideas (short of learning Java/C). I found an online converter that can do this properly (http://home1.paulschou.net/tools/xlate/), but I need to decode 10,000+ values..
> NOTICE: The information contained in this e-mail and any attachments is intended solely for the recipient(s) named above, and may be confidential and legally privileged. If you received this e-mail in error, please notify the sender immediately by return e-mail and delete the original message and any copy of it from your computer system. If you are not the intended recipient, you are hereby notified that any review, disclosure, retransmission, dissemination, distribution, copying, or other use of this e-mail, or any of its contents, is strictly prohibited.
> Although this e-mail and any attachments are believed to be free of any virus or other defects, it is the responsibility of the recipient to ensure that it is virus-free and no responsibility is accepted by the sender for any loss or damage arising if such a virus or defect exists.
> Pauldotcom mailing list
> Pauldotcom at mail.pauldotcom.com
> Main Web Site: http://pauldotcom.com
More information about the Pauldotcom