Path: redb-route/redb.Route.Ldap/LdapComponent.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Ldap/LdapComponent.cs
----
using redb.Route.Abstractions;
using redb.Route.Core;
namespace redb.Route.Ldap;
///
/// LDAP transport component for redb.Route.
/// Scheme: ldap.
///
/// URI format: ldap:SEARCH:dc=example,dc=com?server=host&port=636&ssl=true&filter=(objectClass=user)
///
///
/// The first path segment is the .
/// The remaining segments form the base DN or target DN.
///
///
public sealed class LdapComponent : ComponentBase
{
///
public override string Scheme => "ldap";
///
public override IEndpoint CreateEndpoint(EndpointUri uri)
{
ArgumentNullException.ThrowIfNull(uri);
var options = new LdapEndpointOptions();
options.BindFromUri(uri.RawParameters);
options.Validate();
return new LdapEndpoint(uri, this, options);
}
}