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

Re: Bad search filter (-7)





--On Wednesday, January 25, 2006 10:31 AM -0800 Michael Oliver <ollie@alariussystems.com> wrote:

However following the guide I try

ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts

and I get:

# extended LDIF
#
# LDAPv3
# base <''> with scope base
# filter: '(objectclass=*)'
# requesting: namingContexts
#

ldapsearch: ldap_search_ext: Bad search filter (-7)

instead of what I expected based on the guide:

      dn:
      namingContexts: dc=invent,dc=albanynanotech,dc=org


What am I doing wrong, I have read and re-read the instructions.

I would figure out:

What version of OpenLDAP you have running


Because using my 2.3 servers:

tribes:~> ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#

#
dn:
namingContexts: dc=stanford,dc=edu

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


It is as expected.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html