Re: Manage IA5strings with Perl LDAP
Graham Barr <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <[email protected]> |
On Nov 26, 2008, at 4:28 AM, Clément OUDOT wrote:
> Thanks for your answer. I have to translate java code to perl ;) But
> another question, it seems the value we get from AD is binary, I use
> the
> "raw" attribute in Net::LDAP search but the value I get is not what
> I can
> see with an ldapsearch... Is there a better way to manage binary
> data in
> perl-ldap ?
ldapsearch is outputing in LDIF and binary data will be base64
encoded. You can tell this by the double : after the attribute name
you should see the same result if you use Net::LDAP::LDIF to output
your entry
my $ldif = Net::LDAP::LDIF->new('-','w');
$ldif->write_entry($entry);
Graham.