Source of file ActiveDirectory.php
Size: 4,854 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Ldap/Node/RootDse/ActiveDirectory.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Ldap\Node\RootDse; use Zend\Ldap; use Zend\Ldap\Node; /** * Zend\Ldap\Node\RootDse\ActiveDirectory provides a simple data-container for * the RootDse node of an Active Directory server. */ class ActiveDirectory extends Node\RootDse { /** * Gets the configurationNamingContext. * * @return string|null */ public function getConfigurationNamingContext() { return $this->getAttribute('configurationNamingContext', 0); } /** * Gets the currentTime. * * @return string|null */ public function getCurrentTime() { return $this->getAttribute('currentTime', 0); } /** * Gets the defaultNamingContext. * * @return string|null */ public function getDefaultNamingContext() { return $this->getAttribute('defaultNamingContext', 0); } /** * Gets the dnsHostName. * * @return string|null */ public function getDnsHostName() { return $this->getAttribute('dnsHostName', 0); } /** * Gets the domainControllerFunctionality. * * @return string|null */ public function getDomainControllerFunctionality() { return $this->getAttribute('domainControllerFunctionality', 0); } /** * Gets the domainFunctionality. * * @return string|null */ public function getDomainFunctionality() { return $this->getAttribute('domainFunctionality', 0); } /** * Gets the dsServiceName. * * @return string|null */ public function getDsServiceName() { return $this->getAttribute('dsServiceName', 0); } /** * Gets the forestFunctionality. * * @return string|null */ public function getForestFunctionality() { return $this->getAttribute('forestFunctionality', 0); } /** * Gets the highestCommittedUSN. * * @return string|null */ public function getHighestCommittedUSN() { return $this->getAttribute('highestCommittedUSN', 0); } /** * Gets the isGlobalCatalogReady. * * @return string|null */ public function getIsGlobalCatalogReady() { return $this->getAttribute('isGlobalCatalogReady', 0); } /** * Gets the isSynchronized. * * @return string|null */ public function getIsSynchronized() { return $this->getAttribute('isSynchronized', 0); } /** * Gets the ldapServiceName. * * @return string|null */ public function getLDAPServiceName() { return $this->getAttribute('ldapServiceName', 0); } /** * Gets the rootDomainNamingContext. * * @return string|null */ public function getRootDomainNamingContext() { return $this->getAttribute('rootDomainNamingContext', 0); } /** * Gets the schemaNamingContext. * * @return string|null */ public function getSchemaNamingContext() { return $this->getAttribute('schemaNamingContext', 0); } /** * Gets the serverName. * * @return string|null */ public function getServerName() { return $this->getAttribute('serverName', 0); } /** * Determines if the capability is supported * * @param string|string|array $oids capability(s) to check * @return bool */ public function supportsCapability($oids) { return $this->attributeHasValue('supportedCapabilities', $oids); } /** * Determines if the control is supported * * @param string|array $oids control oid(s) to check * @return bool */ public function supportsControl($oids) { return $this->attributeHasValue('supportedControl', $oids); } /** * Determines if the version is supported * * @param string|array $policies policy(s) to check * @return bool */ public function supportsPolicy($policies) { return $this->attributeHasValue('supportedLDAPPolicies', $policies); } /** * Gets the server type * * @return int */ public function getServerType() { return self::SERVER_TYPE_ACTIVEDIRECTORY; } /** * Returns the schema DN * * @return \Zend\Ldap\Dn */ public function getSchemaDn() { $schemaDn = $this->getSchemaNamingContext(); return Ldap\Dn::fromString($schemaDn); } } |