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

Schema matching rules don't work (ITS#3118)



Full_Name: Pierangelo Masarati
Version: HEAD
OS: Irrelevant
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (81.72.89.40)


Schema matching rules do not work.  Whan using matched values control to extract
schema items, the sequence is numericoidValidate(), which fails if anything but
an OID is used, followed by firstComponentNormalize(), which fails if anything
but "( OID..." is provided.  So there's no way a macth can occur.  So 

ldapsearch -b 'cn=subschema' -s base -E mv="(attributeTypes=\28 2.5.18.2 \29)

fails because there's more than an OID in the value, while

ldapsearch -b 'cn=subschema' -s base -E mv="(attributeTypes=2.5.18.2)

fails at firstComponentNormalize() because there are no brackets.  I guess the
solution would be to relax constraints in firstComponentNormalize(), and let it
skip brakets if they're there without requiring their presence.

p.