<quote who="Thomas Gagné">
<snip>
Out of curiosity, will that command work with other non-OpenLDAP
directories?
No. According to some RFC (don't recall which, too lazy to search), each
entery in an LDAP directory must specify an attribute named
subschemaSubEntry. This attribute's value is the DN where the schema is
housed. In the case of default OpenLDAP installs, each entry in the
directory has a subschemaSubEntry with a value of "cn=subschema". In
Novell eDirectory, this value is generally "cn=schema". To make your
application nice and generic, it should read the subschemaSubEntry for the
DN of interest, and search for the schema there. Note that if you don't
have a DN to search from, you can just use the RootDSE entry by specifying
an empty DN ("") and searching with a scope of "base". RootDSE behavior is
also described in some RFC (again, too lazy, yadda yadda).