API Reference
Class
LdapScanner
Provides higher level LDAP scanning utilities.
Inheritance
- Object
- LdapScanner
Constructors
public LdapScanner() #Methods
public IReadOnlyList<LdapServerResult> TestDomains(IEnumerable<String> domains, Boolean skipRodc = false, 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, Int32 perServerBudgetMs = 10000, Action<LdapServerResult> onResult = null, Int32 perPortTimeoutMs = 3000, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, IReadOnlyDictionary<String, IReadOnlyCollection<LdapPort>> identityPortsByServer = null) #Returns:
IReadOnlyList<LdapServerResult>Tests all domain controllers in the specified domains.
Parameters
- domains System.Collections.Generic.IEnumerable{System.String}
- skipRodc System.Boolean = false
- 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
- perServerBudgetMs System.Int32 = 10000
- onResult System.Action{ADPlayground.Ldap.LdapServerResult} = null
- perPortTimeoutMs System.Int32 = 3000
- useStartTls System.Boolean = false
- searchBase System.String = null
- searchFilter System.String = null
- searchAttribute System.String = null
- useCustomSearch System.Boolean = false
- identityPortsByServer System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyCollection{ADPlayground.Ldap.LdapPort}} = null
public IReadOnlyList<LdapServerResult> TestForest(String forest = null, Boolean includeTrusts = false, Boolean skipRodc = false, 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, Int32 perServerBudgetMs = 10000, Action<LdapServerResult> onResult = null, Int32 perPortTimeoutMs = 3000, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, IReadOnlyDictionary<String, IReadOnlyCollection<LdapPort>> identityPortsByServer = null) #Returns:
IReadOnlyList<LdapServerResult>Tests all domain controllers in a forest.
Parameters
- forest System.String = null
- includeTrusts System.Boolean = false
- skipRodc System.Boolean = false
- 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
- perServerBudgetMs System.Int32 = 10000
- onResult System.Action{ADPlayground.Ldap.LdapServerResult} = null
- perPortTimeoutMs System.Int32 = 3000
- useStartTls System.Boolean = false
- searchBase System.String = null
- searchFilter System.String = null
- searchAttribute System.String = null
- useCustomSearch System.Boolean = false
- identityPortsByServer System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyCollection{ADPlayground.Ldap.LdapPort}} = null
public IReadOnlyList<LdapServerResult> TestServers(IEnumerable<String> servers, 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, Int32 perServerBudgetMs = 10000, Action<LdapServerResult> onResult = null, Int32 perPortTimeoutMs = 3000, Boolean parallelPortChecks = true, Int32 maxPortConcurrency = 0, IReadOnlyList<LdapPort> portOrder = null, Boolean stopAfterFirstSuccess = false, Int32 identityTimeoutMs = 0, CancellationToken cancellationToken = null, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, IReadOnlyDictionary<String, IReadOnlyCollection<LdapPort>> identityPortsByServer = null, Boolean abortOnInvalidCredentials = false) #Returns:
IReadOnlyList<LdapServerResult>Tests the specified servers.
Parameters
- servers System.Collections.Generic.IEnumerable{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
- perServerBudgetMs System.Int32 = 10000
- onResult System.Action{ADPlayground.Ldap.LdapServerResult} = null
- perPortTimeoutMs System.Int32 = 3000
- parallelPortChecks System.Boolean = true
- maxPortConcurrency System.Int32 = 0
- portOrder System.Collections.Generic.IReadOnlyList{ADPlayground.Ldap.LdapPort} = null
- stopAfterFirstSuccess System.Boolean = false
- identityTimeoutMs System.Int32 = 0
- 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
- identityPortsByServer System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyCollection{ADPlayground.Ldap.LdapPort}} = null
- abortOnInvalidCredentials System.Boolean = false
public async Task<IReadOnlyList<LdapServerResult>> TestServersAsync(IEnumerable<String> servers, 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, Int32 perServerBudgetMs = 10000, Action<LdapServerResult> onResult = null, Int32 perPortTimeoutMs = 3000, Boolean parallelPortChecks = true, Int32 maxPortConcurrency = 0, IReadOnlyList<LdapPort> portOrder = null, Boolean stopAfterFirstSuccess = false, Int32 identityTimeoutMs = 0, CancellationToken cancellationToken = null, Boolean useStartTls = false, String searchBase = null, String searchFilter = null, String searchAttribute = null, Boolean useCustomSearch = false, IReadOnlyDictionary<String, IReadOnlyCollection<LdapPort>> identityPortsByServer = null, Boolean abortOnInvalidCredentials = false) #Returns:
Task<IReadOnlyList<LdapServerResult>>Tests the specified servers asynchronously.
Parameters
- servers System.Collections.Generic.IEnumerable{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
- perServerBudgetMs System.Int32 = 10000
- onResult System.Action{ADPlayground.Ldap.LdapServerResult} = null
- perPortTimeoutMs System.Int32 = 3000
- parallelPortChecks System.Boolean = true
- maxPortConcurrency System.Int32 = 0
- portOrder System.Collections.Generic.IReadOnlyList{ADPlayground.Ldap.LdapPort} = null
- stopAfterFirstSuccess System.Boolean = false
- identityTimeoutMs System.Int32 = 0
- 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
- identityPortsByServer System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyCollection{ADPlayground.Ldap.LdapPort}} = null
- abortOnInvalidCredentials System.Boolean = false