Class LdapEndpointOptions

Namespace: redb.Route.Ldap
Assembly: redb.Route.Ldap.dll

Typed options for LDAP endpoint. Bound from URI query parameters.

public sealed class LdapEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→LdapEndpointOptions

Inherited Members

Properties

Attributes

Comma-separated list of attributes to return, e.g. cn,mail,sAMAccountName.

public string? Attributes { get; set; }

BindDn

Bind DN for service account authentication.

public string? BindDn { get; set; }

BindPassword

Password for service account authentication.

public string? BindPassword { get; set; }

ChangeTrackingMode

Change tracking mode: modifyTimestamp, usn, or persistent.

public string ChangeTrackingMode { get; set; }

ClientCertPassword

Password for client certificate.

public string? ClientCertPassword { get; set; }

ClientCertPath

Path to client certificate for mutual TLS.

public string? ClientCertPath { get; set; }

ConnectionFactory

Named connection factory from the registry.

[RegistryReference(typeof(LdapConnectionFactory))]
public string? ConnectionFactory { get; set; }

ConnectTimeout

Connection timeout in milliseconds.

public int ConnectTimeout { get; set; }

DetectDeletions

Detect deleted entries by comparing known DNs with current search results (opt-in).

public bool DetectDeletions { get; set; }

Filter

LDAP filter expression, e.g. (objectClass=user).

public DynamicValue<string>? Filter { get; set; }

FollowReferrals

Follow LDAP referrals automatically.

public bool FollowReferrals { get; set; }

FullSyncInterval

Number of poll cycles between full synchronizations for deletion detection (default 10).

public int FullSyncInterval { get; set; }

InitialLoad

Load all matching entries on consumer startup.

public bool InitialLoad { get; set; }

MaxConnections

Maximum number of connections in the pool.

public int MaxConnections { get; set; }

OperationTimeout

Operation timeout in milliseconds.

public int OperationTimeout { get; set; }

PageSize

Page size for paged search results (default 500).

public int PageSize { get; set; }

PollInterval

Poll interval in milliseconds for the Watch consumer (default 60000).

public int PollInterval { get; set; }

Port

LDAP port (389 for plain, 636 for LDAPS).

public int Port { get; set; }

ProtocolVersion

LDAP protocol version (default 3).

public int ProtocolVersion { get; set; }

Scope

Search scope: base, onelevel, or subtree (default).

public string Scope { get; set; }

Server

LDAP server hostname or IP.

public string Server { get; set; }

SizeLimit

Server-side maximum number of entries to return (0 = unlimited).

public int SizeLimit { get; set; }

Ssl

Use LDAPS (SSL/TLS from the start, typically port 636).

public bool Ssl { get; set; }

StartTls

Use STARTTLS upgrade on the plain port (389).

public bool StartTls { get; set; }

TimeLimit

Server-side time limit in seconds (0 = unlimited).

public int TimeLimit { get; set; }

TrustAllCertificates

Skip server certificate validation (development only!).

public bool TrustAllCertificates { get; set; }

Methods

UnknownParameterHint(string)

A connector's own words for a parameter name it does not know — typically a name it used to

protected override string? UnknownParameterHint(string name)

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()