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

OpenLDAP wildcard searches.



Hello all,

I've come across an issue where java developers using one of our LDAP environments want to be able to do wildcard searches on non-standard LDAP attributes. They are using a custom schema in the LDAP environment which contains the following attributes for example.

retailerId:
jurisdictionID:

They want to be able to perform the following search filter to pull all entries with 21 as the jurisdictionID and any wildcard for the retailerID.

 '(&(retailerId=*)(jurisdictionID=21))'  works as expected but of course this returns all objects with any retailerID.

They would like to narrow the search results using the filters below. Is there something that needs to be added to the custom schema to allow this to work like it does for the standard LDAP attributes like cn,sn,mail etc?

'(&(retailerId=177*)(jurisdictionID=21))'  returns zero results
'(&(retailerId=*389)(jurisdictionID=21))'  returns zero results
'(&(retailerId=1*389)(jurisdictionID=21))'  returns zero results