Class LdapProviderOptions

Assembly: redb.Identity.Ldap.dll

Configuration for LDAP external user provider.

public sealed class LdapProviderOptions : LdapConnectionSettings

Inheritance

Object→LdapConnectionSettings→LdapProviderOptions

Inherited Members

Properties

AdditionalClaimsMap

Extra LDAP attributes mapped to AdditionalClaims.

public Dictionary<string, string> AdditionalClaimsMap { get; set; }

AttributeMap

Map of identity fields to LDAP attribute names.

public Dictionary<string, string> AttributeMap { get; set; }

CheckAccountStatus

Whether to check userAccountControl flags (AD only). Default: false.

public bool CheckAccountStatus { get; set; }

Domains

Accepted domain hints (e.g. "corp.example.com", "CORP").

public string[] Domains { get; set; }

Priority

Priority in the external provider chain (lower = tried first). Default: 100.

public int Priority { get; set; }

ProviderName

Provider name reported to LoginService. Default: "ldap".

public string ProviderName { get; set; }

SearchScope

Search scope. Default: subtree.

public LdapSearchScopeOption SearchScope { get; set; }

UserBaseDn

Base DN for user search, e.g. "ou=users,dc=example,dc=com".

public string UserBaseDn { get; set; }

UserFilter

LDAP search filter template. Use {0} for username substitution.

public string UserFilter { get; set; }

Methods

ApplyPreset(LdapPreset)

Apply a named preset (overwrites AttributeMap and UserFilter).

public void ApplyPreset(LdapPreset preset)

NormalizeAfterBind()

Restores case-insensitive comparers on dictionaries after IConfiguration.Bind().

public void NormalizeAfterBind()

Validate()

Validates the options and throws on misconfiguration.

public void Validate()