import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
247
libs/Zend/Ldap/Node/RootDse/ActiveDirectory.php
Normal file
247
libs/Zend/Ldap/Node/RootDse/ActiveDirectory.php
Normal file
@ -0,0 +1,247 @@
|
||||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Ldap
|
||||
* @subpackage RootDSE
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ActiveDirectory.php 13449 2008-12-23 17:49:44Z sgehrig $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Ldap_Node_RootDse
|
||||
*/
|
||||
require_once 'Zend/Ldap/Node/RootDse.php';
|
||||
|
||||
/**
|
||||
* Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of
|
||||
* an Active Directory server.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Ldap
|
||||
* @subpackage RootDSE
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Ldap_Node_RootDse_ActiveDirectory extends Zend_Ldap_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 boolean
|
||||
*/
|
||||
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 boolean
|
||||
*/
|
||||
public function supportsControl($oids)
|
||||
{
|
||||
return $this->attributeHasValue('supportedControl', $oids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the version is supported
|
||||
*
|
||||
* @param string|array $policies policy(s) to check
|
||||
* @return boolean
|
||||
*/
|
||||
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();
|
||||
/**
|
||||
* @see Zend_Ldap_Dn
|
||||
*/
|
||||
require_once 'Zend/Ldap/Dn.php';
|
||||
return Zend_Ldap_Dn::fromString($schemaDn);
|
||||
}
|
||||
}
|
102
libs/Zend/Ldap/Node/RootDse/OpenLdap.php
Normal file
102
libs/Zend/Ldap/Node/RootDse/OpenLdap.php
Normal file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Ldap
|
||||
* @subpackage RootDSE
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: OpenLdap.php 13449 2008-12-23 17:49:44Z sgehrig $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Ldap_Node_RootDse
|
||||
*/
|
||||
require_once 'Zend/Ldap/Node/RootDse.php';
|
||||
|
||||
/**
|
||||
* Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of
|
||||
* an OpenLDAP server.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Ldap
|
||||
* @subpackage RootDSE
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Ldap_Node_RootDse_OpenLdap extends Zend_Ldap_Node_RootDse
|
||||
{
|
||||
/**
|
||||
* Gets the configContext.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getConfigContext()
|
||||
{
|
||||
return $this->getAttribute('configContext', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the monitorContext.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMonitorContext()
|
||||
{
|
||||
return $this->getAttribute('monitorContext', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the control is supported
|
||||
*
|
||||
* @param string|array $oids control oid(s) to check
|
||||
* @return boolean
|
||||
*/
|
||||
public function supportsControl($oids)
|
||||
{
|
||||
return $this->attributeHasValue('supportedControl', $oids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the extension is supported
|
||||
*
|
||||
* @param string|array $oids oid(s) to check
|
||||
* @return boolean
|
||||
*/
|
||||
public function supportsExtension($oids)
|
||||
{
|
||||
return $this->attributeHasValue('supportedExtension', $oids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the feature is supported
|
||||
*
|
||||
* @param string|array $oids feature oid(s) to check
|
||||
* @return boolean
|
||||
*/
|
||||
public function supportsFeature($oids)
|
||||
{
|
||||
return $this->attributeHasValue('supportedFeatures', $oids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server type
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getServerType()
|
||||
{
|
||||
return self::SERVER_TYPE_OPENLDAP;
|
||||
}
|
||||
}
|
160
libs/Zend/Ldap/Node/RootDse/eDirectory.php
Normal file
160
libs/Zend/Ldap/Node/RootDse/eDirectory.php
Normal file
@ -0,0 +1,160 @@
|
||||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Ldap
|
||||
* @subpackage RootDSE
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: eDirectory.php 13449 2008-12-23 17:49:44Z sgehrig $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Ldap_Node_RootDse
|
||||
*/
|
||||
require_once 'Zend/Ldap/Node/RootDse.php';
|
||||
|
||||
/**
|
||||
* Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of
|
||||
* a Novell eDirectory server.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Ldap
|
||||
* @subpackage RootDSE
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Ldap_Node_RootDse_eDirectory extends Zend_Ldap_Node_RootDse
|
||||
{
|
||||
/**
|
||||
* Determines if the extension is supported
|
||||
*
|
||||
* @param string|array $oids oid(s) to check
|
||||
* @return boolean
|
||||
*/
|
||||
public function supportsExtension($oids)
|
||||
{
|
||||
return $this->attributeHasValue('supportedExtension', $oids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vendorName.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVendorName()
|
||||
{
|
||||
return $this->getAttribute('vendorName', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vendorVersion.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVendorVersion()
|
||||
{
|
||||
return $this->getAttribute('vendorVersion', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the dsaName.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getDsaName()
|
||||
{
|
||||
return $this->getAttribute('dsaName', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "errors".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsErrors()
|
||||
{
|
||||
return $this->getAttribute('errors', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "securityErrors".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsSecurityErrors()
|
||||
{
|
||||
return $this->getAttribute('securityErrors', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "chainings".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsChainings()
|
||||
{
|
||||
return $this->getAttribute('chainings', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "referralsReturned".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsReferralsReturned()
|
||||
{
|
||||
return $this->getAttribute('referralsReturned', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "extendedOps".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsExtendedOps()
|
||||
{
|
||||
return $this->getAttribute('extendedOps', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "abandonOps".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsAbandonOps()
|
||||
{
|
||||
return $this->getAttribute('abandonOps', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server statistics "wholeSubtreeSearchOps".
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStatisticsWholeSubtreeSearchOps()
|
||||
{
|
||||
return $this->getAttribute('wholeSubtreeSearchOps', 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the server type
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getServerType()
|
||||
{
|
||||
return self::SERVER_TYPE_EDIRECTORY;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user