[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Problem testing slapd utf-8 support
Hi,
I'm having a problem doing an ldap add with utf-8 data.
I'm using openldap 2.0.11, with default configuration on Suse Linux 7.3.
The slapd is running with default configuration.
I've written a test program (a hack of test.c in
...libraries/libldap_r/test.c) to do an ldap add, running on the same
machine, based on same release of openldap.
The following add (ascii only data) succeeds:
dn: cn=SysAd,dc=my-domain,dc=com
objectclass: organizationalRole
cn:SysAd
description: System Administrator
The following add fails:
dn: cn=SysAd,dc=my-domain,dc=com
objectclass: organizationalRole
cn:SysAd
description: char hangugo[9] = { 0xEd, 0x95, 0xEA, 0xB5, 0xAD, 0xEC, 0x96,
0xB4, '\0'};
(This word "hangugo", is an example of a Korean word from rfc2279.txt -
utf-8 rfc)
The error message coming back from the slapd server is:
add: Invalid syntax
additional info: description: value #0 contains invalid data
It seems from going through the serverside code, that it expects this data
to be ascii or it is invalid. I wonder if my LDAP server is set up for
ascii locale? How would I find this out?
Thanks in advance for any information on this one..
Allan