Path: redb-route/redb.Route.Ldap/LdapHeaders.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/LdapHeaders.cs
----
namespace redb.Route.Ldap;
///
/// Header constants for LDAP exchanges. All keys use the redbLdap. prefix.
///
public static class LdapHeaders
{
/// Common prefix for all LDAP headers.
public const string Prefix = "redbLdap.";
// ── Common ──
/// Distinguished Name of the entry.
public const string Dn = "redbLdap.Dn";
/// Base DN used for the operation.
public const string BaseDn = "redbLdap.BaseDn";
/// LDAP filter expression.
public const string Filter = "redbLdap.Filter";
/// UTC timestamp of the exchange.
public const string Timestamp = "redbLdap.Timestamp";
// ── Search ──
/// Number of entries returned by a search.
public const string ResultCount = "redbLdap.ResultCount";
/// Search execution time in milliseconds.
public const string SearchTime = "redbLdap.SearchTime";
/// Opaque cookie for paged search continuation.
public const string PageCookie = "redbLdap.PageCookie";
/// LDAP server hostname.
public const string Server = "redbLdap.Server";
/// LDAP server port.
public const string Port = "redbLdap.Port";
/// Whether SSL/TLS was used for the connection.
public const string Ssl = "redbLdap.Ssl";
/// Search scope used (Base, OneLevel, Subtree).
public const string Scope = "redbLdap.Scope";
// ── Modify ──
/// Number of modifications applied.
public const string ModCount = "redbLdap.ModCount";
// ── Delete ──
/// Whether the entry was successfully deleted.
public const string Deleted = "redbLdap.Deleted";
// ── Bind (auth) ──
/// DN used for authentication.
public const string AuthDn = "redbLdap.AuthDn";
/// Password for authentication (cleared after use).
public const string AuthPassword = "redbLdap.AuthPassword";
/// Bind result code.
public const string BindResult = "redbLdap.BindResult";
// ── Compare ──
/// Attribute name to compare.
public const string CompareAttribute = "redbLdap.CompareAttribute";
/// Expected attribute value to compare against.
public const string CompareValue = "redbLdap.CompareValue";
/// Comparison result (true/false).
public const string CompareResult = "redbLdap.CompareResult";
// ── Rename ──
/// New RDN for rename operation.
public const string NewRdn = "redbLdap.NewRdn";
/// New parent DN for move operation.
public const string NewParentDn = "redbLdap.NewParentDn";
/// Original DN before rename.
public const string OldDn = "redbLdap.OldDn";
/// Resulting DN after rename.
public const string NewDn = "redbLdap.NewDn";
// ── Consumer (Watch) ──
/// Type of change detected: added, modified, or deleted.
public const string ChangeType = "redbLdap.ChangeType";
/// Opaque marker for change tracking position (USN or timestamp).
public const string ChangeMarker = "redbLdap.ChangeMarker";
/// Checks whether a header key belongs to this connector.
public static bool IsRedbHeader(string key) =>
key.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase);
}