Red Hat Bugzilla – Bug 173375
Problems with schema matching rules
Last modified: 2015-12-07 11:52:35 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Description of problem:
Some tools have problems parsing schema matching rules:
A dump of the LDIF (cn=schema) shows "matchingRules entries with parts of names mising (i.e. "-ar" instead of "caseIgnoreSubstringMatch-ar")
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.get LDIF export of cn=schema
Actual Results: matchingRules entries appeared to be mangled for most entries.
Expected Results: Expected well formed entries such as "caseIgnoreSubstringMatch-ar", not "-ar".
Other tools such as JXplorer, have issues with parsing matching rules and thus produce mangled entiries as well.
Novell's Java API throws an exception with LDAPConnection.fetchSchema() method
at com.novell.ldap.LDAPMatchingRuleSchema.<init>(Unknown Source)
at com.novell.ldap.LDAPSchema.<init>(Unknown Source)
at com.novell.ldap.LDAPConnection.fetchSchema(Unknown Source)
The same capabilities work in similar directory servers such as Sun's 5.2 version.
Without the ability to correctly read and process schema attribute values, large numbers of tools which perform operations based on data types defined for attributes will fail.
*** Bug 173376 has been marked as a duplicate of this bug. ***
Created attachment 122892 [details]
Created attachment 122895 [details]
modified patch (strncat length changed)
Checking in collate.c;
/cvs/dirsec/ldapserver/ldap/servers/plugins/collation/collate.c,v <-- collate.c
new revision: 1.7; previous revision: 1.6
*** Bug 192267 has been marked as a duplicate of this bug. ***
LDAP Search command issued:
/usr/lib/mozldap/ldapsearch -h localhost -p 389 -D "cn=directory manager" -w
Secret123 -s sub -b "cn=schema" "" "*"
And the output contains:
matchingRules: ( 2.16.840.1.1137126.96.36.199.0.1.6 NAME 'caseIgnoreSubstringMatch-
default' SYNTAX 188.8.131.52.4.1.14184.108.40.206.15 )