Hello,
I'm using OpenLDAP 2.3.3 (debian etch package).
I'm trying to use a wildcard in a ldapsearch like this :
ldapsearch -x -W -D "cn=admin,dc=planetb,dc=fr" "ipHostNumber=10.10.*"
This search return any results. I know that I can't use a wildcard on a ipHostNumber attribut because it don't have SUBSTR MatchingRules. So i try to change my nis.scema like this :
attributetype ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber' DESC 'IP address' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
But, the seach always return any results.
I would like know how to force substr search on this attribute ! It is possible ? And it is possible on attribute "gidNumber" too?
Thanks !
Thibaut Vdk.
(Sorry for my english)
Thibaut VdK wrote:
I'm using OpenLDAP 2.3.3 (debian etch package).
Assuming this isn't a typo, 2.3.3 is an old release and early in the 2.3 branch. Upgrading to 2.3.42 would be a good idea.
I know that I can't use a wildcard on a ipHostNumber attribut because it don't have SUBSTR MatchingRules. So i try to change my nis.scema like this :
It is not advisable to change standard schema. You may want to use a different or custom attribute instead of changing an accepted one.
But, the seach always return any results.
The first thing to ask: did you re-index or re-load the data after changing the schema? If not, your search will not work. See the slapindex command.
If that definitely is not the problem, then for debugging it is better to include at a minimum the actual search command, the resulting output, an LDIF representation of the data you should find, and information from your slapd configuration.
(Sorry for my english)
Seems fine, actually.
Jon Roberts www.mentata.com
Jon Roberts jon@jonanddeb.net writes:
Thibaut VdK wrote:
I'm using OpenLDAP 2.3.3 (debian etch package).
Assuming this isn't a typo, 2.3.3 is an old release and early in the 2.3 branch. Upgrading to 2.3.42 would be a good idea.
It was probably a typo. Debian etch released with 2.3.30. (Upgrading to 2.3.42 may still be a good idea, though.)
Okay.
I'll trying to upgrade my openldap to 2.3.42 soon.
But I ask me if it doesn't have a specific attribute in the ldapsearch syntax to force MatchingRules at Substr (I saw it in some proprietary software). Because I can't create my own schema for compatibility restraints with some application. (I can just change the based schema)
Thanks for your answers.
2008/6/2 Russ Allbery rra@stanford.edu:
Jon Roberts jon@jonanddeb.net writes:
Thibaut VdK wrote:
I'm using OpenLDAP 2.3.3 (debian etch package).
Assuming this isn't a typo, 2.3.3 is an old release and early in the 2.3 branch. Upgrading to 2.3.42 would be a good idea.
It was probably a typo. Debian etch released with 2.3.30. (Upgrading to 2.3.42 may still be a good idea, though.)
-- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/http://www.eyrie.org/%7Eeagle/
openldap-software@openldap.org