Possible bug in Net::LDAP::LDIF 0.18

Chris Dukes <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Hi,
I'm using Net::LDAP and Net::LDAP::LDIF to extract a subset of the data
from our corporate LDAP server for use in our test LDAP server.

I'm getting a bit of an anomaly when DNs contain UTF 8 characters
and "encode => 'canonical'" on creating the ldif file for writing.

If there is no UTF8 in the DN the dn: line of the ldif entry looks
proper... IE
dn: cn=Tognoni team,ou=metadata,ou=corpgroups,o=corp.com
When it contains UTF 8 characters, the dn: portion is missing
CN=Driftsplanlægning Risskov,OU=metadata,OU=corpgroups,O=corp.com

The base64 CN is
cn:: RHJpZnRzcGxhbmzDpmduaW5nIFJpc3Nrb3Y=

For now I'm just going to change the encoding to none or base64.
However, having the DN multibyte escaped may make the ldif files a bit
more user friendly.

Thanks,

-- 
Chris Dukes
"In cynicism she's about 35" -- Terry Pratchett's "Hog Father"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.