The LDAPConnection Class
The LdapConnection class provides information about LDAP connections. All properties are read only. For each configured LDAP connection, one class instance exists. The property Name has the key qualifier and uniquely identifies an LDAP instance.
LdapConnection Class Properties
The table below lists the properties of the ‘LdapConnection’ class in alphabetical order. All properties are read-only.
Some WMI queries are only available starting from anynode version 4.14.(Check out available WMI queries with the PowerShell command below).
To display all available contents of the System class locally without credentials, you can use the following command:
Get-WmiObject -Namespace "root\TESYSTEMS\anynode" -Class "System"
-Namespace "root\TESYSTEMS\anynode" : Specifies the WMI namespace
for anynode.
-Class "LdapConnection" : Selects the "LdapConnection" class to retrieve its contents.
Property: CachedItemsCount
Type: uint32
Description: The property provides the number of items cached.
Property: EncryptionType
Type: uint32
Description: The property provides the used encryption type. Valid values are:
-
No encryption
-
SSL encryption
-
Start SSL encryption
Property: EstablishTime
Type: datetime
Description: The property provides the date and time when the LDAP connection was established.
The format is the WMI datetime format.
Property: HostName
Type: string
Description: The property provides the host name or IP address of the LDAP server.
Property: HostPort
Type: uint32
Description: The property provides the port used for communication with the LDAP server.
Property: LastSearchTime
Type: datetime
Description: The property provides the date and time when the last search was done. The format
is the WMI datetime format.
Property: Name
Type: string
Description: The property provides the name of the node. The name is unique, has the key attribute, and identifies a node instance.
Property: SearchCount
Type: uint32
Description: The property provides the number of searches done since the connection was established.
Property: Status
Type: uint32
Description: The property provides the status of the LDAP connection. Valid values are:
-
Idle
-
Connecting
-
Connected
-
ErrorConfiguration
-
ErrorAuthentication
-
ErrorServerDown
-
Error
Property: StatusErrorCode
Type: uint32
Description: The property provides the result code in case the Status is set to
Error.