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

inheritance of matching rules (ITS#868)

Full_Name: Martin Evans
Version: Recent CVS
OS: Linux 2.1.x
Submission from: (NULL) (

Recently, Mark Adamson of CMU kindly contributed his approximate matching
algorithms to the CVS.

The approximate matching code works for the filter (mail~=xxxx) but not with
the filter (sn~=xxxx).

The mail attributeType contains a EQUALITY matching rule in its definition:

attributetype ( 0.9.2342.19200300.100.1.3
    NAME ( 'mail' 'rfc822Mailbox' )
    DESC 'RFC1274: RFC822 Mailbox'
    EQUALITY caseIgnoreIA5Match
    SUBSTR caseIgnoreIA5SubstringsMatch
    SYNTAX{256} )

Whereas the sn inherits its rule from 'name':

attributetype ( NAME 'name'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX{32768} )

attributetype ( NAME ( 'sn' 'surname' ) SUP name )

If the sn attributetype is modified to directly reference the rule then the
approx matching works. I.e. with the undesirable:

attributetype ( NAME ( 'sn' 'surname' )
         EQUALITY caseIgnoreMatch
         SUP name )

This has led Mark and myself to believe that the inheritance is not working

Thought you should know,