[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Chinese characters in mail search causes failed assertion in slapd
- To: openldap-technical@openldap.org
- Subject: Chinese characters in mail search causes failed assertion in slapd
- From: Alfie John <alfiej@opera.com>
- Date: Tue, 07 Feb 2012 13:10:36 +1100
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=5iRNSAED+q8Y4PJiKKmHjR9j/zQ=; b=JOufrwsA0hgEtSfs2qr/MuSEYgVR vj5uaGM5LLenf57UAIDcHRCiacpiTGqekrVh5CH8XlxJo0uY2sPRHa105lNanYlz w7yN+JYvnG4g+/IgwhJoZ3QVgR/YdyKzoxj4e+7snXn8xJonH9rlHJpAGcjcrqm4 r5j9poTUBrbMhcQ=
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?
Thanks
Alfie
--
Alfie John
alfiej@opera.com