[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
telephoneNumber indexing does not allow eq and sub (ITS#888)
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