Class LdapConnectionSettings

Assembly: redb.Identity.Ldap.dll

Shared LDAP connection settings. Base class for both
and .

public class LdapConnectionSettings

Inheritance

Object→LdapConnectionSettings

Derived

Properties

BindDn

Bind DN for service-account search. Required for search+bind flow.

public string? BindDn { get; set; }

BindPassword

Bind password for service-account search.

public string? BindPassword { get; set; }

ConnectTimeoutSeconds

Bounded DNS+TCP pre-flight probe timeout in seconds. 0 disables the

public int ConnectTimeoutSeconds { get; set; }

EffectivePort

Returns the effective LDAP port (636 if SSL enabled and default port unchanged).

public int EffectivePort { get; }

MaxConnections

Maximum number of pooled connections. Default: 5.

public int MaxConnections { get; set; }

OperationTimeoutSeconds

Client-side timeout for a single LDAP operation in seconds. 0 = no limit. Default: 10.

public int OperationTimeoutSeconds { get; set; }

Port

LDAP port. Default: 389 (636 for LDAPS).

public int Port { get; set; }

Server

LDAP server hostname or IP. Default: "localhost".

public string Server { get; set; }

SkipCertificateValidation

Skip server certificate validation (development only!). Default: false.

public bool SkipCertificateValidation { get; set; }

UseSsl

Use LDAPS (SSL/TLS on connect). Default: false.

public bool UseSsl { get; set; }

UseStartTls

Upgrade to TLS via STARTTLS on the plain port. Default: false.

public bool UseStartTls { get; set; }

Methods

ValidateConnection()

Validates the connection settings.

public void ValidateConnection()