[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Chinese characters in mail search causes failed assertion in slapd



Am Tue, 07 Feb 2012 13:10:36 +1100
schrieb Alfie John <alfiej@opera.com>:

> Hi guys,
> 
> When searching for Chinese names in the "to:" field under
> Thunderbird, I get an assertion failing in slapd. I see that this is
> because the "mail" attribute in the default schema is of type "IA5
> String" but the Chinese name that I'm searching for falls outside the
> character set.
> 
> The work around I have is to modify the "mail" attributetype in the
> core.schema from:
> 
>   attributetype ( 0.9.2342.19200300.100.1.3
>     NAME ( 'mail' 'rfc822Mailbox' )
>     DESC 'RFC1274: RFC822 Mailbox'
>     EQUALITY caseIgnoreIA5Match
>     SUBSTR caseIgnoreIA5SubstringsMatch
>     SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
> 
> to:
> 
>   attributetype ( 0.9.2342.19200300.100.1.3
>     NAME ( 'mail' 'rfc822Mailbox' )
>     DESC 'RFC1274: RFC822 Mailbox'
>     EQUALITY caseIgnoreMatch
>     SUBSTR caseIgnoreSubstringsMatch
>     SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
> 
> Can anyone see a problem with the above, or is there a better way of
> accomplishing this?

Never modify a standard track attribute type, all you can do is to
create a subtype of mail. On the other hand, your intention does
not comply to RFC-5322 which requires that header fields MUST be
composed of printable US-ASCII characters.

-Dieter

-- 
Dieter KlÃnter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53Â37'09,95"N
10Â08'02,42"E