From: Chris R. <chr...@me...> - 2001-06-04 07:31:37
|
Christoph Neumann <en...@ap...> wrote: > = > I'm using OpenLDAP 2.0.11 with perlldap 0.23. I'm trying to insert > international characters into the directory. I'm wondering if I need to > do anything special with perlldap inorder to achive this feat, or if my > problem is entirely dependant on OpenLDAP. > = > Here's what I have in the schema > = > attributetype ( 1.3.6.1.4.1.96419.1.1.13 > NAME 'apuHomeStreet' > DESC 'Street address for home mailing address' > EQUALITY caseExactMatch > SUBSTR caseIgnoreSubstringsMatch > SINGLE-VALUE > SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{100} ) > = > I chose the directoryString (UTF-8 format) type since it should allow the > international characters. However, when I try to insert the string 'im > k=E4ppele 8' I get the error: > = > apuhomestreet: value #0 contains invalid data > = > - Christoph The schema entry looks correct. What were the actual bytes in your string, and what were the actual bytes sent to the server? What version of perl were you using? It is possible that you were entering characters using a different character set (eg ISO 8859-1) which of course are not UTF-8. I don't think Net::LDAP does any magic translation of character sets (it doesn't know enough to be able to do this) though I'm not too sure what perl 5.6 will do for you here. To see the actual bytes going to the server, create the Net::LDAP object using debug =3D> 8: $ldap =3D Net::LDAP->new('hostname', debug =3D> 8); Cheers, Chris |