Class LdapExternalUserProvider

Assembly: redb.Identity.Ldap.dll

LDAP external user provider. Implements search+bind authentication:

Search with service account to find user DN by uid/sAMAccountName
Bind with found user DN + provided password to verify credentials
Check UAC flags (if enabled) for disabled/locked accounts
Map LDAP attributes → ExternalAuthResult

public sealed class LdapExternalUserProvider : IExternalUserProvider, IAsyncDisposable

Inheritance

Object→LdapExternalUserProvider

Implements

Properties

Priority

Lower value = tried first. Default providers should use 100+.

public int Priority { get; }

ProviderName

Provider identifier, e.g. "ldap", "oidc:google", "saml:corp".

public string ProviderName { get; }

Methods

AuthenticateAsync(string, string, CancellationToken)

Attempts to authenticate username / password

public Task<ExternalAuthResult?> AuthenticateAsync(string username, string password, CancellationToken ct = default)

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or

public ValueTask DisposeAsync()

Constructors