TestimoX

API Reference

Class

LdapPreflight

Namespace ADPlayground.Ldap
Assembly ADPlayground
Modifiers static

Lightweight LDAP connectivity preflight helpers that avoid relying on anonymous binds. Intended for reuse by hosts (e.g., TestimoX) and other components.

Inheritance

  • Object
  • LdapPreflight

Methods

public static ValueTuple<Boolean, String> TryAuthenticatedRootDse(String host, Int32 port = 389, Int32 timeoutMs = 3000) #
Returns: ValueTuple<Boolean, String>

Attempts a RootDSE base search using AuthType.Negotiate (current user context). Any response from the server counts as connectivity; only transport errors are considered failures.

Parameters

host System.String requiredposition: 0
port System.Int32 = 389 optionalposition: 1
timeoutMs System.Int32 = 3000 optionalposition: 2
public static ValueTuple<Boolean, String> TryTcp(String host, Int32 port = 389, Int32 timeoutMs = 3000) #
Returns: ValueTuple<Boolean, String>

Tries a TCP connect to the LDAP port. Treats a successful connection as reachability, regardless of authentication policy on the server.

Parameters

host System.String requiredposition: 0
port System.Int32 = 389 optionalposition: 1
timeoutMs System.Int32 = 3000 optionalposition: 2
public static async Task<ValueTuple<Boolean, String>> TryTcpAsync(String host, Int32 port = 389, Int32 timeoutMs = 3000, CancellationToken cancellationToken = null) #
Returns: Task<ValueTuple<Boolean, String>>

Tries a TCP connect to the LDAP port asynchronously. Treats a successful connection as reachability, regardless of authentication policy on the server.

Parameters

host System.String requiredposition: 0
port System.Int32 = 389 optionalposition: 1
timeoutMs System.Int32 = 3000 optionalposition: 2
cancellationToken System.Threading.CancellationToken = null optionalposition: 3