Named connection factory for LDAP. Register it in the route registry and reference it by name from the endpoint URI (connectionFactory=my-ldap) so that service-account credentials never have to appear in the URI itself — and therefore can never reach logs, telemetry, or the Tsak dashboard.
Example: context.AddToRegistry("corp-ldap", new LdapConnectionFactory { Server = "ldap.corp.local", Port = 636, Ssl = true, BindDn = "cn=svc-reader,dc=corp,dc=local", BindPassword = Environment.GetEnvironmentVariable("LDAP_BIND_PASSWORD") });
// route carries no credentials at all: r.From("ldap://SEARCH:dc=corp,dc=local?connectionFactory=corp-ldap&filter=(objectClass=user)")