[Date Prev][Date Next]
RE: RFC 2251 Root DSE non-standard
- To: "Howard Chu" <firstname.lastname@example.org>, <openldap-software@OpenLDAP.org>
- Subject: RE: RFC 2251 Root DSE non-standard
- From: "Kevin J. McCarthy" <email@example.com>
- Date: Sun, 2 Sep 2001 02:36:21 -0500
- Content-class: urn:content-classes:message
- Thread-index: AcEzf2miFmfVjqVaTc6QKf0ij5VKggAAD3ew
- Thread-topic: RFC 2251 Root DSE non-standard
Tell IBM, Microsoft, and all the ISVs who are being lazy! :^) Honestly,
I will do so. I know they are the ones who are at fault. They need to
ask for what they want, those buggers!
I can understand your argument, since the more important attributes are
explicitly defined (supportedSASLMechanisms, namingContexts,
supportedLDAPVersion, subschemaSubentry, etc.). Makes sense to me. The
problem is that this 3rd party sofware has already been written and I
can not change any of it. It simply does not work with OpenLDAP because
I agree with you philosophically, but I see more value in making a
change that does not break any rules and provides much greater utility.
I am thinking a patch would be minimal and would fix many annoying
From: Howard Chu [mailto:firstname.lastname@example.org]
Sent: Sunday, September 02, 2001 2:19 AM
To: Kevin J. McCarthy; Kurt D. Zeilenga (E-mail)
Subject: RE: RFC 2251 Root DSE non-standard
Any clients that behave this way are relying on non-standard behavior.
The only safe approach that obeys the spec and is guaranteed to work is
to explicitly specify a list of the attributes that you're interested
All in all that makes the most sense - you're not going to pay attention
to any attributes that you didn't ask for anyway, so why bother getting
all of them?
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
> -----Original Message-----
> From: Kevin J. McCarthy [mailto:email@example.com]
> I see that the + is an attribute wildcard and not the filter. That
> However, OpenLDAP REQUIRES the "+" and all others REJECT it.
> If you look at generic clients, they do not supply an attribute list.
> They expect some valid result from a NULL list. I see that this is not
> explicitly required, but it is a de facto standard that appears to be
> -----Original Message-----
> From: Howard Chu [mailto:firstname.lastname@example.org]
> Sent: Sunday, September 02, 2001 2:04 AM
> To: Kevin J. McCarthy
> Cc: openldap-software@OpenLDAP.org
> Subject: RE: RFC 2251 Root DSE non-standard
> > -----Original Message-----
> > From: owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Kevin J.
> > McCarthy
> > Kurt,
> Excuse me for butting in here...
> > Regarding:
> > ldapsearch -x -h localhost -b "" -s base +
> This is an invalid search. I'm surprised you get a response from it.
> > That is non-standard behavior. I am not saying it is WRONG; not at
> > What I am saying is that every other server I have access to (Active
> > Directory, iPlanet, and IBM secureWay) all provide rootDSE stuff
> > ldapsearch -x -h <hostname> -b "" -s base "(objectClass=*)"
> > While OpenLDAP returns this:
> > dn:
> > objectClass: top
> > objectClass: OpenLDAProotDSE
> > Which is totally useless. When I replace the "(objectClass=*)" with
> > as you indicate, I get what I want from OpenLDAP. However, the "+"
> > breaks EVERY OTHER server so that they produce no results (or
> > referrals).
> You should not be replacing "(objectclass=*)", that is the search
> are required to provide a filter with your search request. The "+"
> the attribute list, i.e., the list of attributes you're interested in.
> case, "+" is a wildcard that stands for all of the operational
> Your request should have been
> ldapsearch -x -h <hostname> -b "" -s base "(objectClass=*)" +
> > According to RFC 2251:
> > An LDAP server MUST provide information about itself and other
> > information that is specific to each server. This is represented as
> > group of attributes located in the root DSE (DSA-Specific Entry),
> > is named with the zero-length LDAPDN. These attributes are
> > if a client performs a base object search of the root with filter
> > "(objectClass=*)", however they are subject to access control
> > restrictions. The root DSE MUST NOT be included if the client
> > subtree search starting from the root.
> > Doing that search DOES NOT tell a client anything about the server,
> > as far as I can tell requiring the "+" does not adhere to the RFC.
> > Kevin
> The "+" is not *required*, it's just a convenient shorthand, simpler
> out "namingcontexts supportedLDAPversion ..." But, an attribute list
> or another *is* required.
> The information in the root DSE that you are looking for consists of
> operational attributes. A server that returns operational attributes
> they have not been requested is violating the LDAP protocol. See
> the end of section 4.5.1. It's also stated in section 3.2.1.
> Client implementors should note that even if all user attributes
> requested, some attributes of the entry may not be included in
> search results due to access control or other restrictions.
> *** Furthermore, servers will not return operational attributes, such
> as objectClasses or attributeTypes, unless they are listed by
> since there may be extremely large number of values for certain
> operational attributes. (A list of operational attributes for use
> in LDAP is given in .)
> ps:  above is RFC2252, LDAPv3 Attributes...
> -- Howard Chu
> Chief Architect, Symas Corp. Director, Highland Sun
> http://www.symas.com http://highlandsun.com/hyc