ActiveDirectory
extends RootDse
in package
Laminas\Ldap\Node\RootDse\ActiveDirectory provides a simple data-container for the RootDse node of an Active Directory server.
Table of Contents
Constants
- SERVER_TYPE_ACTIVEDIRECTORY = 3
- SERVER_TYPE_EDIRECTORY = 4
- SERVER_TYPE_GENERIC = 1
- SERVER_TYPE_OPENLDAP = 2
Properties
- $currentData : array<string|int, mixed>
- Holds the node's current data.
- $dn : Dn
- Holds the node's DN.
- $systemAttributes : array<int, non-empty-string>
Methods
- __get() : mixed
- Gets a LDAP attribute.
- __isset() : bool
- Checks whether a given attribute exists.
- __set() : mixed
- Sets a LDAP attribute.
- __toString() : string
- Cast to string representation {@see toString()}
- __unset() : mixed
- Deletes a LDAP attribute.
- attributeHasValue() : bool
- Checks if the given value(s) exist in the attribute
- count() : mixed
- create() : RootDse
- Factory method to create the RootDse.
- existsAttribute() : bool
- Checks whether a given attribute exists.
- getAttribute() : mixed
- Gets a LDAP attribute.
- getAttributes() : array<string|int, mixed>
- Gets all attributes of node.
- getConfigurationNamingContext() : string|null
- Gets the configurationNamingContext.
- getCurrentTime() : string|null
- Gets the currentTime.
- getData() : array<string|int, mixed>
- Gets node attributes.
- getDateTimeAttribute() : array<string|int, mixed>|int
- Gets a LDAP date/time attribute.
- getDefaultNamingContext() : string|null
- Gets the defaultNamingContext.
- getDn() : Dn
- Gets the DN of the current node as a Laminas\Ldap\Dn.
- getDnArray() : array<string|int, mixed>
- Gets the DN of the current node as an array.
- getDnsHostName() : string|null
- Gets the dnsHostName.
- getDnString() : string
- Gets the DN of the current node as a string.
- getDomainControllerFunctionality() : string|null
- Gets the domainControllerFunctionality.
- getDomainFunctionality() : string|null
- Gets the domainFunctionality.
- getDsServiceName() : string|null
- Gets the dsServiceName.
- getForestFunctionality() : string|null
- Gets the forestFunctionality.
- getHighestCommittedUSN() : string|null
- Gets the highestCommittedUSN.
- getIsGlobalCatalogReady() : string|null
- Gets the isGlobalCatalogReady.
- getIsSynchronized() : string|null
- Gets the isSynchronized.
- getLDAPServiceName() : string|null
- Gets the ldapServiceName.
- getNamingContexts() : array<string|int, mixed>
- Gets the namingContexts.
- getObjectClass() : array<string|int, mixed>
- Gets the objectClass of the node
- getRdnArray() : array<string|int, mixed>
- Gets the RDN of the current node as an array.
- getRdnString() : string
- Gets the RDN of the current node as a string.
- getRootDomainNamingContext() : string|null
- Gets the rootDomainNamingContext.
- getSchemaDn() : Dn
- Returns the schema DN
- getSchemaNamingContext() : string|null
- Gets the schemaNamingContext.
- getServerName() : string|null
- Gets the serverName.
- getServerType() : int
- Gets the server type
- getSubschemaSubentry() : string|null
- Gets the subschemaSubentry.
- offsetExists() : mixed
- offsetGet() : mixed
- offsetSet() : mixed
- offsetUnset() : mixed
- reload() : AbstractNode
- Reload node attributes from LDAP.
- supportsCapability() : bool
- Determines if the capability is supported
- supportsControl() : bool
- Determines if the control is supported
- supportsPolicy() : bool
- Determines if the version is supported
- supportsSaslMechanism() : bool
- Determines if the sasl mechanism is supported
- supportsVersion() : bool
- Determines if the version is supported
- toArray() : array<string|int, mixed>
- Returns an array representation of the current node
- toJson() : string
- Returns a JSON representation of the current node
- toString() : string
- Returns the DN of the current node. {@see getDnString()}
- __construct() : mixed
- Constructor is protected to enforce the use of factory methods.
- _getDn() : Dn
- Gets the DN of the current node as a Laminas\Ldap\Dn.
- loadData() : mixed
Constants
SERVER_TYPE_ACTIVEDIRECTORY
public
mixed
SERVER_TYPE_ACTIVEDIRECTORY
= 3
SERVER_TYPE_EDIRECTORY
public
mixed
SERVER_TYPE_EDIRECTORY
= 4
SERVER_TYPE_GENERIC
public
mixed
SERVER_TYPE_GENERIC
= 1
SERVER_TYPE_OPENLDAP
public
mixed
SERVER_TYPE_OPENLDAP
= 2
Properties
$currentData
Holds the node's current data.
protected
array<string|int, mixed>
$currentData
$dn
Holds the node's DN.
protected
Dn
$dn
$systemAttributes
protected
static array<int, non-empty-string>
$systemAttributes
= ['createtimestamp', 'creatorsname', 'entrycsn', 'entrydn', 'entryuuid', 'hassubordinates', 'modifiersname', 'modifytimestamp', 'structuralobjectclass', 'subschemasubentry', 'distinguishedname', 'instancetype', 'name', 'objectcategory', 'objectguid', 'usnchanged', 'usncreated', 'whenchanged', 'whencreated']
Methods
__get()
Gets a LDAP attribute.
public
__get(string $name) : mixed
This is an offline method.
Parameters
- $name : string
Tags
__isset()
Checks whether a given attribute exists.
public
__isset(string $name) : bool
Empty attributes will be treated as non-existent.
Parameters
- $name : string
Return values
bool__set()
Sets a LDAP attribute.
public
__set(string $name, mixed $value) : mixed
This is an offline method.
Parameters
- $name : string
- $value : mixed
Tags
__toString()
Cast to string representation {@see toString()}
public
__toString() : string
Return values
string__unset()
Deletes a LDAP attribute.
public
__unset(string $name) : mixed
This method deletes the attribute.
This is an offline method.
Parameters
- $name : string
Tags
attributeHasValue()
Checks if the given value(s) exist in the attribute
public
attributeHasValue(string $attribName, mixed|array<string|int, mixed> $value) : bool
Parameters
- $attribName : string
- $value : mixed|array<string|int, mixed>
Return values
boolcount()
public
count() : mixed
Tags
Attributes
create()
Factory method to create the RootDse.
public
static create(Ldap $ldap) : RootDse
Parameters
- $ldap : Ldap
Return values
RootDseexistsAttribute()
Checks whether a given attribute exists.
public
existsAttribute(string $name[, bool $emptyExists = false ]) : bool
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 method returns false only if the attribute name is missing in the key-collection.
Parameters
- $name : string
- $emptyExists : bool = false
Return values
boolgetAttribute()
Gets a LDAP attribute.
public
getAttribute(string $name[, int $index = null ]) : mixed
This is an offline method.
Parameters
- $name : string
- $index : int = null
Tags
getAttributes()
Gets all attributes of node.
public
getAttributes([bool $includeSystemAttributes = true ]) : array<string|int, mixed>
The collection contains all attributes.
This is an offline method.
Parameters
- $includeSystemAttributes : bool = true
Return values
array<string|int, mixed>getConfigurationNamingContext()
Gets the configurationNamingContext.
public
getConfigurationNamingContext() : string|null
Return values
string|nullgetCurrentTime()
Gets the currentTime.
public
getCurrentTime() : string|null
Return values
string|nullgetData()
Gets node attributes.
public
getData([bool $includeSystemAttributes = true ]) : array<string|int, mixed>
The array contains all attributes in its internal format (no conversion).
This is an offline method.
Parameters
- $includeSystemAttributes : bool = true
Return values
array<string|int, mixed>getDateTimeAttribute()
Gets a LDAP date/time attribute.
public
getDateTimeAttribute(string $name[, int $index = null ]) : array<string|int, mixed>|int
This is an offline method.
Parameters
- $name : string
- $index : int = null
Tags
Return values
array<string|int, mixed>|intgetDefaultNamingContext()
Gets the defaultNamingContext.
public
getDefaultNamingContext() : string|null
Return values
string|nullgetDn()
Gets the DN of the current node as a Laminas\Ldap\Dn.
public
getDn() : Dn
The method returns a clone of the node's DN to prohibit modification.
This is an offline method.
Return values
DngetDnArray()
Gets the DN of the current node as an array.
public
getDnArray([string $caseFold = null ]) : array<string|int, mixed>
This is an offline method.
Parameters
- $caseFold : string = null
Return values
array<string|int, mixed>getDnsHostName()
Gets the dnsHostName.
public
getDnsHostName() : string|null
Return values
string|nullgetDnString()
Gets the DN of the current node as a string.
public
getDnString([string $caseFold = null ]) : string
This is an offline method.
Parameters
- $caseFold : string = null
Return values
stringgetDomainControllerFunctionality()
Gets the domainControllerFunctionality.
public
getDomainControllerFunctionality() : string|null
Return values
string|nullgetDomainFunctionality()
Gets the domainFunctionality.
public
getDomainFunctionality() : string|null
Return values
string|nullgetDsServiceName()
Gets the dsServiceName.
public
getDsServiceName() : string|null
Return values
string|nullgetForestFunctionality()
Gets the forestFunctionality.
public
getForestFunctionality() : string|null
Return values
string|nullgetHighestCommittedUSN()
Gets the highestCommittedUSN.
public
getHighestCommittedUSN() : string|null
Return values
string|nullgetIsGlobalCatalogReady()
Gets the isGlobalCatalogReady.
public
getIsGlobalCatalogReady() : string|null
Return values
string|nullgetIsSynchronized()
Gets the isSynchronized.
public
getIsSynchronized() : string|null
Return values
string|nullgetLDAPServiceName()
Gets the ldapServiceName.
public
getLDAPServiceName() : string|null
Return values
string|nullgetNamingContexts()
Gets the namingContexts.
public
getNamingContexts() : array<string|int, mixed>
Return values
array<string|int, mixed>getObjectClass()
Gets the objectClass of the node
public
getObjectClass() : array<string|int, mixed>
Return values
array<string|int, mixed>getRdnArray()
Gets the RDN of the current node as an array.
public
getRdnArray([string $caseFold = null ]) : array<string|int, mixed>
This is an offline method.
Parameters
- $caseFold : string = null
Return values
array<string|int, mixed>getRdnString()
Gets the RDN of the current node as a string.
public
getRdnString([string $caseFold = null ]) : string
This is an offline method.
Parameters
- $caseFold : string = null
Return values
stringgetRootDomainNamingContext()
Gets the rootDomainNamingContext.
public
getRootDomainNamingContext() : string|null
Return values
string|nullgetSchemaDn()
Returns the schema DN
public
getSchemaDn() : Dn
Return values
DngetSchemaNamingContext()
Gets the schemaNamingContext.
public
getSchemaNamingContext() : string|null
Return values
string|nullgetServerName()
Gets the serverName.
public
getServerName() : string|null
Return values
string|nullgetServerType()
Gets the server type
public
getServerType() : int
Return values
intgetSubschemaSubentry()
Gets the subschemaSubentry.
public
getSubschemaSubentry() : string|null
Return values
string|nulloffsetExists()
public
offsetExists(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
Attributes
offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
Attributes
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
Tags
Attributes
offsetUnset()
public
offsetUnset(mixed $offset) : mixed
Parameters
- $offset : mixed
Tags
Attributes
reload()
Reload node attributes from LDAP.
public
reload([Ldap|null $ldap = null ]) : AbstractNode
This is an online method.
Parameters
- $ldap : Ldap|null = null
Return values
AbstractNode —Provides a fluid interface
supportsCapability()
Determines if the capability is supported
public
supportsCapability(string|array<string|int, mixed> $oids) : bool
Parameters
- $oids : string|array<string|int, mixed>
-
capability(s) to check
Return values
boolsupportsControl()
Determines if the control is supported
public
supportsControl(string|array<string|int, mixed> $oids) : bool
Parameters
- $oids : string|array<string|int, mixed>
-
control oid(s) to check
Return values
boolsupportsPolicy()
Determines if the version is supported
public
supportsPolicy(string|array<string|int, mixed> $policies) : bool
Parameters
- $policies : string|array<string|int, mixed>
-
policy(s) to check
Return values
boolsupportsSaslMechanism()
Determines if the sasl mechanism is supported
public
supportsSaslMechanism(string|array<string|int, mixed> $mechlist) : bool
Parameters
- $mechlist : string|array<string|int, mixed>
-
SASL mechanisms to check
Return values
boolsupportsVersion()
Determines if the version is supported
public
supportsVersion(string|int|array<string|int, mixed> $versions) : bool
Parameters
- $versions : string|int|array<string|int, mixed>
-
version(s) to check
Return values
booltoArray()
Returns an array representation of the current node
public
toArray([bool $includeSystemAttributes = true ]) : array<string|int, mixed>
Parameters
- $includeSystemAttributes : bool = true
Return values
array<string|int, mixed>toJson()
Returns a JSON representation of the current node
public
toJson([bool $includeSystemAttributes = true ]) : string
Parameters
- $includeSystemAttributes : bool = true
Return values
stringtoString()
Returns the DN of the current node. {@see getDnString()}
public
toString() : string
Return values
string__construct()
Constructor is protected to enforce the use of factory methods.
protected
__construct(Dn $dn, array<string|int, mixed> $data) : mixed
Parameters
- $dn : Dn
- $data : array<string|int, mixed>
_getDn()
Gets the DN of the current node as a Laminas\Ldap\Dn.
protected
_getDn() : Dn
This is an offline method.
Return values
DnloadData()
protected
loadData(array<string|int, mixed> $data, bool $fromDataSource) : mixed
Parameters
- $data : array<string|int, mixed>
- $fromDataSource : bool