Hii All,

I am using openldap v2.3 on redhat El-4. When i run ldapsearch it returns all the entries. The command runs successfully. But when I run the ldapsearch with following filter option it doesnt work and immediately returns to the shell.

ldapsearch uidNumber>=2000

I've started slapd in debug mode so that i can trace for the errors. When i run this command there is no error shown there i.e. err=0.

Some similar search results are as follows :

$ ldapsearch -x -L "(&(gidNumber=102)(uidNumber>=2000))"
version: 1

#
# LDAPv3
# base <with>=2000))
# requesting: ALL
#

# search result

# numResponses: 1



$ ldapsearch -x -L "(&(gidNumber=102)(uidNumber>2000))"
version: 1

#
# LDAPv3
# base <with>2000))
# requesting: ALL
#

ldapsearch: ldap_search_ext: Bad search filter (-7)



I think ldap server is accepting only '=' searchfilter. It is not able to take '>' , '>=' etc. type of search filters.

But y so ?



I know this may not be the right place to post this query but i m not getting help on this from anywhere.

can anybody please help me.


regards,
Shamik.