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

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

On 02/07/2012 08:56 AM, Dieter KlÃnter wrote:
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{256} )


   attributetype ( 0.9.2342.19200300.100.1.3
     NAME ( 'mail' 'rfc822Mailbox' )
     DESC 'RFC1274: RFC822 Mailbox'
     EQUALITY caseIgnoreMatch
     SUBSTR caseIgnoreSubstringsMatch
     SYNTAX{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.

In addition, I suggest you check whether the problem persists with the latest release; in case, please file an ITS following instructions here <http://www.openldap.org/faq/data/cache/56.html>.


Pierangelo Masarati
Associate Professor
Dipartimento di Ingegneria Aerospaziale
Politecnico di Milano