On 7/9/05 1:31, Mike Jackson <[EMAIL PROTECTED]> wrote:

> Hi,
>  Is there any technique to determine if the value of an attribute inside
> of a Net::LDAP::Entry object is base64 encoded or not?
> 
>  Perhaps this is more of a general question, or a MIME::Base64 question.

I think it is a MIME::Base64 question. It seems to "silently ignore" most
errors, so you might just have to use a regex :-(

However, you do know that there's no need to base64 encode attribute values
in LDAP? LDAP's a binary protocol. The only use of base64 is when writing
certain unsafe values to LDIF *files*, and (curiously) in some hashed
password mechanisms.

Cheers,

Chris


Reply via email to