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 am looking for something like:
@attr = $entry->get_value('myAttr');
while (@attr) {
if ( is_base64($_) ) { print "is base64" }
}
How can I make an is_base64() test function?
The use case for this is testing if any value of a particular attribute
contains a match for a certain string. Some of the values may be base64
encoded, while others may not, depending on the specific content.
BR,
--
Mike