Class LdapBuilder

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

Fluent builder for LDAP endpoint URIs.

public sealed class LdapBuilder

Inheritance

Object→LdapBuilder

Methods

Attributes(params string[])

Set the attributes to return from search.

public LdapBuilder Attributes(params string[] attrs)

BindDn(IExpression)

Set the Bind DN dynamically.

public LdapBuilder BindDn(IExpression dn)

BindDn(string)

Set the Bind DN for service account authentication.

public LdapBuilder BindDn(string dn)

BindPassword(IExpression)

Set the Bind password dynamically.

public LdapBuilder BindPassword(IExpression password)

BindPassword(string)

Set the Bind password.

public LdapBuilder BindPassword(string password)

Build()

Builds the LDAP endpoint URI string.

public string Build()

ChangeTracking(LdapChangeTrackingMode)

Set the change tracking mode.

public LdapBuilder ChangeTracking(LdapChangeTrackingMode mode = LdapChangeTrackingMode.ModifyTimestamp)

ClientCert(string, string?)

Set client certificate for mutual TLS.

public LdapBuilder ClientCert(string path, string? password = null)

ConnectionFactory(IExpression)

Use a named connection factory dynamically.

public LdapBuilder ConnectionFactory(IExpression name)

ConnectionFactory(string)

Use a named connection factory from the registry.

public LdapBuilder ConnectionFactory(string name)

ConnectTimeout(int)

Set connection timeout in milliseconds.

public LdapBuilder ConnectTimeout(int ms)

DetectDeletions()

Enable deletion detection by comparing known DNs with current results.

public LdapBuilder DetectDeletions()

Filter(IExpression)

Set the LDAP search filter dynamically.

public LdapBuilder Filter(IExpression filter)

Filter(string)

Set the LDAP search filter.

public LdapBuilder Filter(string filter)

FullSyncInterval(int)

Set the number of poll cycles between full synchronizations for deletion detection.

public LdapBuilder FullSyncInterval(int cycles)

InitialLoad()

Load all matching entries on consumer startup.

public LdapBuilder InitialLoad()

MaxConnections(int)

Set the maximum number of pooled connections.

public LdapBuilder MaxConnections(int max)

OperationTimeout(int)

Set operation timeout in milliseconds.

public LdapBuilder OperationTimeout(int ms)

PageSize(IExpression)

Set the page size dynamically.

public LdapBuilder PageSize(IExpression size)

PageSize(int)

Set the page size for paged search results.

public LdapBuilder PageSize(int size)

PollInterval(IExpression)

Set the poll interval dynamically.

public LdapBuilder PollInterval(IExpression ms)

PollInterval(int)

Set the poll interval in milliseconds for the Watch consumer.

public LdapBuilder PollInterval(int ms)

Port(IExpression)

Set the LDAP port dynamically.

public LdapBuilder Port(IExpression port)

Port(int)

Set the LDAP port.

public LdapBuilder Port(int port)

ProtocolVersion(int)

Set the LDAP protocol version (2 or 3).

public LdapBuilder ProtocolVersion(int version)

Referrals(bool)

Control referral following (default: true).

public LdapBuilder Referrals(bool follow)

Scope(LdapSearchScope)

Set the search scope.

public LdapBuilder Scope(LdapSearchScope scope)

Server(IExpression)

Set the LDAP server hostname dynamically.

public LdapBuilder Server(IExpression host)

Server(string)

Set the LDAP server hostname or IP.

public LdapBuilder Server(string host)

SizeLimit(int)

Set the server-side maximum number of entries.

public LdapBuilder SizeLimit(int limit)

Ssl()

Enable LDAPS (SSL/TLS, typically port 636).

public LdapBuilder Ssl()

StartTls()

Enable STARTTLS upgrade on the plain port.

public LdapBuilder StartTls()

TimeLimit(int)

Set the server-side time limit in seconds.

public LdapBuilder TimeLimit(int seconds)

ToString()

Returns a string that represents the current object.

public override string ToString()

TrustAllCertificates()

Skip server certificate validation (development only!).

public LdapBuilder TrustAllCertificates()