[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Bad search filter (-7)
Slapd -V shows @(#) $OpenLDAP: slapd 2.2.29 (Oct 21 2005 16:01:14)
Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)953-8949
Fax:(702)974-0341
-----Original Message-----
From: Quanah Gibson-Mount [mailto:quanah@stanford.edu]
Sent: Wednesday, January 25, 2006 11:22 AM
To: ollie@alariussystems.com; openldap-software@OpenLDAP.org
Subject: 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