Schema queries

The ldap_search() API can be used to query the subschema entry, as shown in the following example:

DN           : "cn=schema"
search scope : base
filter       : objectclass=subschema or objectclass=*

This example retrieves the full schema. To retrieve all of the values of selected attribute types, use the attrs parameter in ldap_search. You cannot retrieve only a specific value of a specific attribute type.

See the"Directory Server APIs" topic for more information about the ldap_search API.