On 1/12/06 9:55, Quanah Gibson-Mount <[EMAIL PROTECTED]> wrote:
>
>
> --On Thursday, November 30, 2006 4:20 PM -0800 [EMAIL PROTECTED] wrote:
>
>> Hello All,
>>
>> When i export a user's userPassword attribute from the command line
>> using the ldapsearch tool, i get the encrypted password
>> "userPassword:: YmF0NjM2NQ==" .When i export a user's attributes using
>> phpldapadmin i get the password unecrpyted 'userPassword: redcar' Does
>> anyone know how you can get the userPassword in plain unencrypted text
>> from the command line ldapsearch tool.
>
> This is not an encrypted value. It is an encoded value. As per various
> RFC's, userPassword is MIME base64 encoded. Simply decode it.
It is only base64 encoded in the context of an LDIF file. Anyway, a hint on
how to decode it:
% perl -MMIME::Base64 -e 'print decode_base64("YmF0NjM2NQ=="),"\n";'
bat365
Cheers,
Chris