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

Re: base search with objectClass=* does not work properly...



I saw the code in the 2.0.7 version of openldap that the root_dse_info function which is called in response to the root_dse query (i.e. ldapsearch -b "" -s base "(objectClass=*)" ) does search for the object classes supported within the LDAP server. I saw the scheme DN query that the oc_info method (which browses through all the object classes supported by the LDAP server) is called. But in my case when I send a query
ldapsearch -b "cn=Subschema" -s base "(objectClass=subschema)"
it returns me only the hardcoded object classes and not the once present in the system, added by me.
I hope Kurt reads this email since I think he could provide more insights to this. Was this how it is supposed to function or is this an oversight?
What am I doing wrong here? From the RFC 2251 cn=subschema should also return all the object classes. Ain't that right???



Thanks in advance SG


From: Jajati Samal <jajati@datalinx.net>
To: Sukanta Ganguly <groundl@hotmail.com>
CC: openldap-software@OpenLDAP.org
Subject: Re: base search with objectClass=* does not work properly...
Date: Tue, 16 Jan 2001 15:51:55 -0600

Hi,
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
'(objectclass=*)'

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 , configured
properly and search works.
Since u have not specifed the Search Base, ldapsearch works with the default
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.


Thanking All
Jajati



Sukanta Ganguly wrote:

> Hi,
> I have the openldap 2.0.7 installed on a linux box. When I issue a base
> search with the NULL base and the filter "(objectClass=*)" I only get two
> object classes. They are top and openldaprootdse. I have many more object
> classes which I don't get in the response. Could anybody please tell me what
> am I doing wrong here?
>
> SG
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com



_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com