Re: Possible bug in Net::LDAP::LDIF 0.18

Graham Barr <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
On Dec 24, 2008, at 8:57 AM, Chris Dukes wrote:

> 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

I am not sure I 100% follow what you are trying to describe. Can you  
send
a small ldif file (base64 encoded) the reproduces the issue and a small
example of the code you use to output. If this is a bug then we can  
include
it in the test suite

Graham.

>
>
> 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.