API Reference
Class
LdapTester
Provides LDAP connectivity validation with optional certificate and identity checks.
Inheritance
- Object
- LdapTester
Constructors
public LdapTester() #Methods
public async Task<LdapEndpointResult> TestEndpointAsync(String serverFqdn, String address, NetworkCredential credential = null, Nullable<AuthType> authType = null, String identity = null, Boolean verifyCertificate = false, Boolean skipGlobalCatalog = false, Int32 retryCount = 1, Int32 retryDelayMs = 100, Int32 portLdap = 389, Int32 portLdaps = 636, Int32 gcPortLdap = 3268, Int32 gcPortLdaps = 3269, CancellationToken cancellationToken = null, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, Int32 perPortTimeoutMs = 3000, Int32 identityTimeoutMs = 0, Int32 maxPortConcurrency = 0) #Returns:
Task<LdapEndpointResult>Tests all LDAP ports on a server for a specific IP endpoint.
Parameters
- serverFqdn System.String
- address System.String
- credential System.Net.NetworkCredential = null
- authType System.Nullable{System.DirectoryServices.Protocols.AuthType} = null
- identity System.String = null
- verifyCertificate System.Boolean = false
- skipGlobalCatalog System.Boolean = false
- retryCount System.Int32 = 1
- retryDelayMs System.Int32 = 100
- portLdap System.Int32 = 389
- portLdaps System.Int32 = 636
- gcPortLdap System.Int32 = 3268
- gcPortLdaps System.Int32 = 3269
- cancellationToken System.Threading.CancellationToken = null
- useStartTls System.Boolean = false
- searchBase System.String = null
- searchFilter System.String = null
- searchAttribute System.String = null
- useCustomSearch System.Boolean = false
- perPortTimeoutMs System.Int32 = 3000
- identityTimeoutMs System.Int32 = 0
- maxPortConcurrency System.Int32 = 0
public async Task<LdapServerResult> TestServerAsync(String server, NetworkCredential credential = null, Nullable<AuthType> authType = null, String identity = null, Boolean verifyCertificate = false, Boolean skipGlobalCatalog = false, Int32 retryCount = 1, Int32 retryDelayMs = 100, Int32 portLdap = 389, Int32 portLdaps = 636, Int32 gcPortLdap = 3268, Int32 gcPortLdaps = 3269, CancellationToken cancellationToken = null, Int32 perPortTimeoutMs = 3000, Boolean parallelPortChecks = true, IReadOnlyList<LdapPort> portOrder = null, Boolean stopAfterFirstSuccess = false, Int32 identityTimeoutMs = 0, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, IReadOnlyCollection<LdapPort> identityPortsToCheck = null, Boolean abortOnInvalidCredentials = false, Int32 maxPortConcurrency = 0) #Returns:
Task<LdapServerResult>Tests all LDAP ports on a server.
Parameters
- server System.String
- credential System.Net.NetworkCredential = null
- authType System.Nullable{System.DirectoryServices.Protocols.AuthType} = null
- identity System.String = null
- verifyCertificate System.Boolean = false
- skipGlobalCatalog System.Boolean = false
- retryCount System.Int32 = 1
- retryDelayMs System.Int32 = 100
- portLdap System.Int32 = 389
- portLdaps System.Int32 = 636
- gcPortLdap System.Int32 = 3268
- gcPortLdaps System.Int32 = 3269
- cancellationToken System.Threading.CancellationToken = null
- perPortTimeoutMs System.Int32 = 3000
- parallelPortChecks System.Boolean = true
- portOrder System.Collections.Generic.IReadOnlyList{ADPlayground.Ldap.LdapPort} = null
- stopAfterFirstSuccess System.Boolean = false
- identityTimeoutMs System.Int32 = 0
- useStartTls System.Boolean = false
- searchBase System.String = null
- searchFilter System.String = null
- searchAttribute System.String = null
- useCustomSearch System.Boolean = false
- identityPortsToCheck System.Collections.Generic.IReadOnlyCollection{ADPlayground.Ldap.LdapPort} = null
- abortOnInvalidCredentials System.Boolean = false
- maxPortConcurrency System.Int32 = 0
public async Task<IReadOnlyList<LdapEndpointResult>> TestServerEndpointsAsync(String serverFqdn, NetworkCredential credential = null, Nullable<AuthType> authType = null, String identity = null, Boolean verifyCertificate = false, Boolean skipGlobalCatalog = false, Int32 retryCount = 1, Int32 retryDelayMs = 100, Int32 portLdap = 389, Int32 portLdaps = 636, Int32 gcPortLdap = 3268, Int32 gcPortLdaps = 3269, Int32 maxConcurrency = 4, CancellationToken cancellationToken = null, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, Int32 perPortTimeoutMs = 3000, Int32 identityTimeoutMs = 0, Int32 maxPortConcurrency = 0) #Returns:
Task<IReadOnlyList<LdapEndpointResult>>Tests all IP endpoints for a server FQDN.
Parameters
- serverFqdn System.String
- credential System.Net.NetworkCredential = null
- authType System.Nullable{System.DirectoryServices.Protocols.AuthType} = null
- identity System.String = null
- verifyCertificate System.Boolean = false
- skipGlobalCatalog System.Boolean = false
- retryCount System.Int32 = 1
- retryDelayMs System.Int32 = 100
- portLdap System.Int32 = 389
- portLdaps System.Int32 = 636
- gcPortLdap System.Int32 = 3268
- gcPortLdaps System.Int32 = 3269
- maxConcurrency System.Int32 = 4
- cancellationToken System.Threading.CancellationToken = null
- useStartTls System.Boolean = false
- searchBase System.String = null
- searchFilter System.String = null
- searchAttribute System.String = null
- useCustomSearch System.Boolean = false
- perPortTimeoutMs System.Int32 = 3000
- identityTimeoutMs System.Int32 = 0
- maxPortConcurrency System.Int32 = 0