TestimoX

API Reference

Class

LdapEngineExtensions

Namespace ADPlayground.LdapEngine
Assembly ADPlayground
Modifiers static

Extension helpers for LdapEngine that create configured DirectorySearcher instances with consistent options (timeouts, referrals, page size).

Inheritance

  • Object
  • LdapEngineExtensions

Methods

public static DirectorySearcher CreateRootSearcher(LdapEngine engine, String domainName, String filter, Int32 pageSize = 1000) #
Returns: DirectorySearcher

Creates a DirectorySearcher at the domain root with engine defaults.

Parameters

engine ADPlayground.LdapEngine.LdapEngine requiredposition: 0
LDAP engine.
domainName System.String requiredposition: 1
DNS domain name.
filter System.String requiredposition: 2
RFC 2254 LDAP filter.
pageSize System.Int32 = 1000 optionalposition: 3
Page size (default 1000).

Returns

Configured DirectorySearcher.

public static DirectorySearcher CreateSearcher(LdapEngine engine, String domainName, String distinguishedName, String filter, SearchScope scope = Subtree, Int32 pageSize = 1000) #
Returns: DirectorySearcher

Creates a DirectorySearcher rooted at the specified DN on a preferred DC with engine timeouts/referrals/page size.

Parameters

engine ADPlayground.LdapEngine.LdapEngine requiredposition: 0
LDAP engine.
domainName System.String requiredposition: 1
DNS domain name (chooses DC).
distinguishedName System.String requiredposition: 2
Base DN for the search.
filter System.String requiredposition: 3
RFC 2254 LDAP filter.
scope System.DirectoryServices.SearchScope = Subtree optionalposition: 4
Search scope (default Subtree).
pageSize System.Int32 = 1000 optionalposition: 5
Page size (default 1000).

Returns

Configured DirectorySearcher.