ldapsearch doesnt work.

General Discussion about LDAP Administrator

Moderator: Support

ldapsearch doesnt work.

Postby liger » Mon Mar 31, 2008 4:53 pm

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 ?

can anybody please help me.
liger
 
Posts: 1
Joined: Mon Mar 31, 2008 4:39 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

cron