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

Re: How to enable search using wildcard characters



Am Wed, 20 Apr 2016 17:58:29 +0530
schrieb PRATIK SINGAL <pratik.singal13@gmail.com>:

> Hello All,
> 
> 
> Can any one please help me how can i search using wild card character.
> 
> My base dn is "dc=example,dc=com" and i want to search all the records
> having "telephone" attribute whose value is starting from 256*
> 
> Am using below verion of openldap
> $OpenLDAP: slapd 2.4.40‎
> 
> Is there any changes which needs to be done in slapd.conf to enable
> wildcard search

First check wether the telephoneNumber attribute type allows substrings
indexing.  Further you should have defined a substrings index on the
telephoneNumber attribute, and the search string should have an
appropriate filter, something like
(&(objectClass=*)(telephoneNumber=256*))

-Dieter

-- 
Dieter Klünter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53°37'09,95"N
10°08'02,42"E