[Date Prev][Date Next] [Chronological] [Thread] [Top]

Use wildcard on ipHostNumber and gidNumber attribute


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 ( NAME 'ipHostNumber'
         DESC 'IP address'
         EQUALITY caseIgnoreIA5Match
         SUBSTR caseIgnoreIA5SubstringsMatch

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)