[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Bad search filter (-7)
If one compares Ollie's output with Quannah, one should discover
that single quotes intended to be processed by the user's shell
were passed through to ldapsearch(1). That is, the user's
shell has some odd string quoting requirements which need to
be addressed by the user.
At 11:22 AM 1/25/2006, Quanah Gibson-Mount wrote:
>--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