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)