Schema queries

Use the ldap_search() API for your schema queries.

The ldap_search() API can be used to query the subschema entry. For 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 attrsparameter in ldap_search. You cannot retrieve only a specific value of a specific attribute type.

For more information about the ldap_search API, see the Programming Reference.