[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-ldap-dev
Subject: Re: display userPassword command line
From: Chris Ridd <chrisridd () mac ! com>
Date: 2006-12-01 10:06:05
Message-ID: C195AF0D.1E9701%chrisridd () mac ! com
[Download RAW message or body]
On 1/12/06 9:55, Quanah Gibson-Mount <quanah@stanford.edu> wrote:
>
>
> --On Thursday, November 30, 2006 4:20 PM -0800 lancerset@gmail.com 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic