On 25/10/05 10:11, Steven.He <[EMAIL PROTECTED]> wrote:

> hi, there
I am a chinese colleger so I work on a project in which has
> some
chinese-character-problem to resolve, just like this:
   dn:
> cn=helin,dc=shaanxi,dc=cn
   objectClass: top
   objectClass: person

> objectClass: inetOrgPerson
   objectClass: qmailUser
   cn: helin
   sn: 贺琳

> mail: [EMAIL PROTECTED]
   accountStatus: active
   mailMessageStore:
> /vmail/helin/
there is 2 chinese characters in sn attribute, so when I add
> this ldif
file to ldap-server, it returns ldap_modify: Invalid syntax
> (21)
additional info: sn: value #0 invalid per syntax. so how to resolve
the
> problem and thank you very much~
--
贺琳


(Sorry about the line-wrapping.)

If you bind to the LDAP server using LDAPv3, the values for sn that you send
the server must be encoded using UTF-8.

Cheers,

Chris


Reply via email to