Issue 888 - telephoneNumber indexing does not allow eq and sub
Summary: telephoneNumber indexing does not allow eq and sub
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-13 11:29 UTC by persteinar.iversen@adm.hio.no
Modified: 2014-08-01 21:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description persteinar.iversen@adm.hio.no 2000-11-13 11:29:54 UTC
Full_Name: Per Steinar Iversen
Version: 2.0.7
OS: RedHat 6.2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (158.36.161.8)


It is not possible to index the telephoneNumber attribute.
Starting with the following in slapd.conf:

index telephoneNumber pres,eq,sub

Then indexing with slapadd fails with:

/usr/local/ldap-2.0/etc/openldap/slapd.conf: line 19: equality index of 
attribute "telephoneNumber"
disallowed/usr/local/ldap-2.0/etc/openldap/slapd.conf: line 19: equality index
of  attribute "telephoneNumber" disallowed

If "eq" is removed, leaving "pres,sub" then the result becomes:

/usr/local/ldap-2.0/etc/openldap/slapd.conf: line 19: substr index of  attribute
"telephoneNumber" disallowed/usr/local/ldap-2.0/etc/openldap/slapd.conf: line
19: substr index of  attribute "telephoneNumber" disallowed

Thus only "pres" is allowed.

core.schema gives the syntax:

attributetype ( 2.5.4.20 NAME 'telephoneNumber'
        EQUALITY telephoneNumberMatch
        SUBSTR telephoneNumberSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.50{32} )

telephoneNumberSubstringsMatch is defined in
servers/slapd/schema_init.cservers/slapd/schema_init.c
like this:

#define telephoneNumberSubstringsMatch  caseIgnoreIA5SubstringsMatch

So it should work?

-psi
Comment 1 Kurt Zeilenga 2000-12-27 11:16:21 UTC
moved from Incoming to Software Enhancements
Comment 2 Kurt Zeilenga 2001-01-16 14:39:56 UTC
changed notes
changed state Open to Test
Comment 3 Kurt Zeilenga 2001-02-05 00:49:33 UTC
changed state Test to Release
Comment 4 Kurt Zeilenga 2001-05-02 22:48:30 UTC
changed notes
Comment 5 Kurt Zeilenga 2001-05-02 23:00:44 UTC
changed notes
changed state Release to Test
Comment 6 Kurt Zeilenga 2001-05-07 17:40:13 UTC
changed state Test to Release
Comment 7 Kurt Zeilenga 2001-05-07 17:40:26 UTC
changed notes
Comment 8 Kurt Zeilenga 2001-05-12 18:34:58 UTC
changed state Release to Closed
Comment 9 OpenLDAP project 2014-08-01 21:07:01 UTC
fixed in HEAD and 2.0re