Class LdapBuilder
Fluent builder for LDAP endpoint URIs.
public sealed class LdapBuilder
Inheritance
Methods
Attributes(params string[])
Set the attributes to return from search.
public LdapBuilder Attributes(params string[] attrs)
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)
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)
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)
FullSyncInterval(int)
Set the number of poll cycles between full synchronizations for deletion detection.
public LdapBuilder FullSyncInterval(int cycles)
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)
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)
ProtocolVersion(int)
Set the LDAP protocol version (2 or 3).
public LdapBuilder ProtocolVersion(int version)
Server(IExpression)
Set the LDAP server hostname dynamically.
public LdapBuilder Server(IExpression host)
TrustAllCertificates()
Skip server certificate validation (development only!).
public LdapBuilder TrustAllCertificates()