On Thu, Apr 07, 2005 at 09:58:44AM +0300, Murat M??d?so?lu wrote:
> Hi,
> I've scanned all the archive and read almost any discusion made on this 
> subject but i can't still solve my problem.
> 
> I can't insert iso8859-9 characters into ldap's mailreplytext attribute.
> Here's what i've tried:
> 
> 1)i wrote the text in iso8859-9 in a file(test.txt)
>   ? created a ldiff file like this:
>       cat modify.ldiff
>               dn: uid=xxx, ou=xxxx, o=mail, dc=x, dc=xxx
>               changetype: modify
>               replace: mailReplyText          
>       mailReplyText:< file:///test.txt
> 
>   and i get:
> 
> modifying entry "uid=xxx, ou= xxxx, o=mail, dc=x, dc=xxx"
> ldap_modify: Invalid syntax
>         additional info: mailReplyText: value #0 invalid per syntax
> 
> ldif_record() = 21
> 
> 
> 2) i wrote a php script who can convert a string to it's base64 form and 
> modifed my ldiff file like:
> 
> dn: uid=xxx, ou=xxxx, o=mail, dc=x, dc=xxx
>               changetype: modify
>               replace: mailReplyText          
>       mailReplyText:: /mnwaf4=
> when i run ldapmodify, i get the same error as 1).
> 
> 3) i tried basicly writing my non-us-ascii char into my ldiff, and i got the 
> same error.
> 
> 
> Can anybody show me the light?

LDAP values need to be UTF-8 encoded.

-- 
:wq Claudio

Reply via email to