For each attribute that has multiple names, this function adds unique entries to the attrs array for those names. Ie, attributeType has name 'gn' and 'givenName'.<br/><br/><p>This function will create a unique entry for 'gn' and 'givenName'.</p><br/><br/><br/>
Adds inherited values to each attributeType specified by the SUP directive.<br/><br/><p>Supports infinite levels of inheritance. Bug 856832: require a second paramter that has all attributes indexed by OID</p><br/><br/><br/>
Returns true if the schema for $schema_type has been cached and<br/><br/><p>is availble. $schema_type may be one of (lowercase) the following: objectclasses attributetypes ldapsyntaxes matchingrules matchingruleuse Note that _get_raw_schema() takes a similar parameter.</p><br/><br/><br/>
Returns the cached array of schemaitem objects for the specified<br/><br/><p>$schema_type. For list of valid $schema_type values, see above schema_cache_available(). Note that internally, this function utilizes a two-layer cache, one in memory using a static variable for multiple calls within the same page load, and one in a session for multiple calls within the same user session (spanning multiple page loads).</p><p>Returns an array of SchemaItem objects on success or false on failure.</p><br/><br/><br/>
Gets an associative array of AttributeType objects for the specified server. Each array entry's key is the name of the attributeType in lower-case and the value is an AttributeType object.<br/><br/><br/><br/>
<h4>Tags:</h4>
<divclass="tags">
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<td><b>return:</b> </td><td>An array of AttributeType objects.</td>
</tr>
</table>
</div>
<br/><br/>
<h4>Parameters</h4>
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<tdclass="type">string </td>
<td><b>$dn</b> </td>
<td>(optional) It is easier to fetch schema if a DN is provided which defines the subschemaSubEntry attribute (all entries should).</td>
Returns an array of MatchingRule objects for the specified server.<br/><br/><p>The key of each entry is the OID of the matching rule.</p><br/><br/><br/>
Gets an associative array of ObjectClass objects for the specified server. Each array entry's key is the name of the objectClass in lower-case and the value is an ObjectClass object.<br/><br/><br/><br/>
<h4>Tags:</h4>
<divclass="tags">
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<td><b>return:</b> </td><td>An array of ObjectClass objects.</td>
Returns an array of Syntax objects that this LDAP server uses mapped to their descriptions. The key of each entry is the OID of the Syntax.<br/><br/><br/><br/>
Caches the specified $schema_type.<br/><br/><p>$schema_items should be an array of SchemaItem instances (ie, an array of ObjectClass, AttributeType, LDAPSyntax, MatchingRuleUse, or MatchingRule objects.</p><p>Returns true on success of false on failure.</p><br/><br/><br/>
Sets the schema entry for the server_id to be "unavailable" so that we realize that we tried to get the schema but could not, so quit trying next time to fetch it from the server.<br/><br/><br/><br/>
Fetches the raw schema array for the subschemaSubentry of the server. Note, this function has grown many hairs to accomodate more LDAP servers. It is needfully complicated as it now supports many popular LDAP servers that don't necessarily expose their schema "the right way".<br/><br/><br/><br/>
<h4>Tags:</h4>
<divclass="tags">
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<td><b>return:</b> </td><td>array of strings of this form: Array ( [0] =>"( 1.3.6.1.4.1.7165.1.2.2.4 NAME 'gidPool' DESC 'Pool ... [1] =>"( 1.3.6.1.4.1.7165.2.2.3 NAME 'sambaAccount' DESC 'Sa ... etc.</td>
</tr>
</table>
</div>
<br/><br/>
<h4>Parameters</h4>
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<tdclass="type">$schema_to_fetch </td>
<td><b>$schema_to_fetch</b> </td>
<td>- A string indicating which type of schema to fetch. Five valid values: 'objectclasses', 'attributetypes', 'ldapsyntaxes', 'matchingruleuse', or 'matchingrules'. Case insensitive.</td>
</tr>
<tr>
<tdclass="type">$dn </td>
<td><b>$dn</b> </td>
<td>(optional) This paremeter is the DN of the entry whose schema you would like to fetch. Entries have the option of specifying their own subschemaSubentry that points to the DN of the system schema entry which applies to this attribute. If unspecified, this will try to retrieve the schema from the RootDSE subschemaSubentry. Failing that, we use some commonly known schema DNs. Default value is the Root DSE DN (zero-length string)</td>
Helper for _get_raw_schema() which fetches the DN of the schema object<br/><br/><p>in an LDAP server based on a DN. Entries should set the subSchemaSubEntry attribute pointing to the DN of the server schema. You can specify the DN whose subSchemaSubEntry you wish to retrieve of specify an empty string to fetch the subScehamSubEntry from the Root DSE.</p><br/><br/><br/>
<h4>Tags:</h4>
<divclass="tags">
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<td><b>return:</b> </td><td>The DN of the entry which houses this LDAP server's schema.</td>
</tr>
</table>
</div>
<br/><br/>
<h4>Parameters</h4>
<tableborder="0"cellspacing="0"cellpadding="0">
<tr>
<tdclass="type">string </td>
<td><b>$dn</b> </td>
<td>The DN (may be null) which houses the subschemaSubEntry attribute which this function can use to determine the schema entry's DN.</td>
</tr>
<tr>
<tdclass="type">bool </td>
<td><b>$debug</b> </td>
<td>Switch to true to see some nice and copious output. :)</td>