Zend_Ldap_Node_RootDse Die folgenden Methoden sind in allen Hersteller-Spezifischen Unterklassen vorhanden. Zend_Ldap_Node_RootDse enthält die magischen Zugriffsmethoden __get() und __isset() um auf die Attribute durch Ihren Namen zugreifen zu können. Sie verweisen auf Zend_Ldap_Node_RootDse::getAttribute() und auf Zend_Ldap_Node_RootDse::existsAttribute(). __set() und __get() sind auch implementiert, werfen aber eine BadMethodCallException da Änderungen auf RootDSE Nodes nicht erlaubt sind. Weiters implementiert die Klasse ArrayAccess für Array-Artigen Zugriff auf die Attribute. offsetSet() und offsetUnset() werfen auch eine BadMethodCallException aus den bekannten Gründen. Zend_Ldap_Node_RootDse API Methode Beschreibung Zend_Ldap_Dn getDn() Gibt den DN des aktuellen Nodes als Zend_Ldap_Dn zurück. string getDnString(string $caseFold) Gibt den DN des aktuellen Nodes als String zurück. array getDnArray(string $caseFold) Gibt den DN des aktuellen Nodes als Array zurück. string getRdnString(string $caseFold) Gibt den RDN des aktuellen Nodes als String zurück. array getRdnArray(string $caseFold) Gibt den RDN des aktuellen Nodes als Array zurück. array getObjectClass() Gibt die objectClass des Nodes zurück. string toString() Gibt den DN des aktuellen Nodes zurück - verweist auf Zend_Ldap_Dn::getDnString(). string __toString() Castet auf eine String Darstellung - verweist auf Zend_Ldap_Dn::toString(). array toArray(boolean $includeSystemAttributes) Gibt eine Array Darstellung des aktuellen Nodes zurück. Wenn $includeSystemAttributes FALSE ist (der Standardwert ist TRUE) werden die System spezifischen Attribute vom Array entfernt. Anders als Zend_Ldap_Node_RootDse::getAttributes() enthält das produzierte Array den DN mit dem Schlüssel 'dn'. string toJson(boolean $includeSystemAttributes) Gibt eine JSON Darstellung des aktuellen Nodes zurück indem Zend_Ldap_Node_RootDse::toArray() verwendet wird. array getData(boolean $includeSystemAttributes) Gibt die Attribute der Nodes zurück. Das Array enthält alle Attribute in Ihrem internen Format (keine Konvertierung). boolean existsAttribute(string $name, boolean $emptyExists) Checks whether a given attribute exists. If $emptyExists is FALSE empty attributes (containing only array()) are treated as non-existent returning FALSE. If $emptyExists is true empty attributes are treated as existent returning TRUE. In this case teh method returns FALSE only if the attribute name is missing in the key-collection. boolean attributeHasValue(string $name, mixed|array $value) Checks if the given value(s) exist in the attribute. The method returns TRUE only if all values in $value are present in the attribute. Comparison is done strictly (respecting the data type). integer count() Returns the number of attributes in the node. Implements Countable. mixed getAttribute(string $name, integer|null $index) Gets a LDAP attribute. Data conversion is applied using Zend_Ldap_Attribute::getAttribute(). array getAttributes(boolean $includeSystemAttributes) Gets all attributes of node. If $includeSystemAttributes is FALSE (defaults to TRUE) the system specific attributes are stripped from the array. array|integer getDateTimeAttribute(string $name, integer|null $index) Gets a LDAP date/time attribute. Data conversion is applied using Zend_Ldap_Attribute::getDateTimeAttribute(). Zend_Ldap_Node_RootDse reload(Zend_Ldap $ldap) Reloads the current node's attributes from the given LDAP server. Zend_Ldap_Node_RootDse create(Zend_Ldap $ldap) Factory method to create the RootDSE. array getNamingContexts() Gets the namingContexts. string|null getSubschemaSubentry() Gets the subschemaSubentry. boolean supportsVersion(string|int|array $versions) Determines if the LDAP version is supported. boolean supportsSaslMechanism(string|array $mechlist) Determines if the sasl mechanism is supported. integer getServerType() Gets the server type. Returns Zend_Ldap_Node_RootDse::SERVER_TYPE_GENERIC for unknown LDAP servers Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP for OpenLDAP servers Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY for Microsoft ActiveDirectory servers Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY For Novell eDirectory servers Zend_Ldap_Dn getSchemaDn() Returns the schema DN.
OpenLDAP Additionally the common methods above apply to instances of Zend_Ldap_Node_RootDse_OpenLdap. Refer to LDAP Operational Attributes and Objectsfor information on the attributes of OpenLDAP RootDSE. Zend_Ldap_Node_RootDse_OpenLdap API Method Description integer getServerType() Gets the server type. Returns Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP string|null getConfigContext() Gets the configContext. string|null getMonitorContext() Gets the monitorContext. boolean supportsControl(string|array $oids) Determines if the control is supported. boolean supportsExtension(string|array $oids) Determines if the extension is supported. boolean supportsFeature(string|array $oids) Determines if the feature is supported.
ActiveDirectory Additionally the common methods above apply to instances of Zend_Ldap_Node_RootDse_ActiveDirectory. Refer to RootDSEfor information on the attributes of Microsoft ActiveDirectory RootDSE. Zend_Ldap_Node_RootDse_ActiveDirectory API Method Description integer getServerType() Gets the server type. Returns Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY string|null getConfigurationNamingContext() Gets the configurationNamingContext. string|null getCurrentTime() Gets the currentTime. string|null getDefaultNamingContext() Gets the defaultNamingContext. string|null getDnsHostName() Gets the dnsHostName. string|null getDomainControllerFunctionality() Gets the domainControllerFunctionality. string|null getDomainFunctionality() Gets the domainFunctionality. string|null getDsServiceName() Gets the dsServiceName. string|null getForestFunctionality() Gets the forestFunctionality. string|null getHighestCommittedUSN() Gets the highestCommittedUSN. string|null getIsGlobalCatalogReady() Gets the isGlobalCatalogReady. string|null getIsSynchronized() Gets the isSynchronized. string|null getLdapServiceName() Gets the ldapServiceName. string|null getRootDomainNamingContext() Gets the rootDomainNamingContext. string|null getSchemaNamingContext() Gets the schemaNamingContext. string|null getServerName() Gets the serverName. boolean supportsCapability(string|array $oids) Determines if the capability is supported. boolean supportsControl(string|array $oids) Determines if the control is supported. boolean supportsPolicy(string|array $policies) Determines if the version is supported.
eDirectory Additionally the common methods above apply to instances of Zend_Ldap_Node_RootDse_eDirectory. Refer to Getting Information about the LDAP Serverfor information on the attributes of Novell eDirectory RootDSE. Zend_Ldap_Node_RootDse_eDirectory API Method Description integer getServerType() Gets the server type. Returns Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY boolean supportsExtension(string|array $oids) Determines if the extension is supported. string|null getVendorName() Gets the vendorName. string|null getVendorVersion() Gets the vendorVersion. string|null getDsaName() Gets the dsaName. string|null getStatisticsErrors() Gets the server statistics "errors". string|null getStatisticsSecurityErrors() Gets the server statistics "securityErrors". string|null getStatisticsChainings() Gets the server statistics "chainings". string|null getStatisticsReferralsReturned() Gets the server statistics "referralsReturned". string|null getStatisticsExtendedOps() Gets the server statistics "extendedOps". string|null getStatisticsAbandonOps() Gets the server statistics "abandonOps". string|null getStatisticsWholeSubtreeSearchOps() Gets the server statistics "wholeSubtreeSearchOps".