[Date Prev][Date Next]
Re: base search with objectClass=* does not work properly...
In RFC 2251 it is mentioned very clearly that a search command like a base
search with NULL RD (implies root dse) will return all the object classes
supported by the LDAP server. So if that is the case then
ldapsearch -b "" -s base "(objectClass=*)" should return all the object
classes within the LDAP server.
From: Jajati Samal <email@example.com>
To: Sukanta Ganguly <firstname.lastname@example.org>
Subject: Re: base search with objectClass=* does not work properly...
Date: Tue, 16 Jan 2001 15:51:55 -0600
First question which commad u have used?
If it is ldapsearch -x -b '' -s base '(objectclass=*)'
it will give u exactly what u got.
If u want to search all the entries of all object class ( suppose) u gottu
specify the Search Base explicitly
So it should look something like ldapsearch -x -b 'c=US' -s base
Depending on the search interest u can spcify the -s option.
The first command is just to make sure that slapd is up n running ,
properly and search works.
Since u have not specifed the Search Base, ldapsearch works with the
search base which may not be your schema base dn. This is my understanding.
Since I'm not great, I may be wrong. Make me correct if I'm.
Sukanta Ganguly wrote:
> I have the openldap 2.0.7 installed on a linux box. When I issue a
> search with the NULL base and the filter "(objectClass=*)" I only get
> object classes. They are top and openldaprootdse. I have many more
> classes which I don't get in the response. Could anybody please tell me
> am I doing wrong here?
> Get your FREE download of MSN Explorer at http://explorer.msn.com
Get your FREE download of MSN Explorer at http://explorer.msn.com