[Date Prev][Date Next]
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
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