Class LdapGroupMapper

Assembly: redb.Identity.Ldap.dll

Syncs LDAP group memberships (memberOf attribute) to Identity groups.
Extracts CN from LDAP group DNs, auto-creates missing groups, and manages memberships.

public sealed class LdapGroupMapper

Inheritance

Object→LdapGroupMapper

Methods

ClearGroupCache()

Clears the group cache. Call after processing a sync batch.

public void ClearGroupCache()

SyncUserGroupsAsync(long, LdapEntry, CancellationToken)

Syncs a user's group memberships from an LDAP entry's memberOf attribute.

public Task SyncUserGroupsAsync(long userId, LdapEntry entry, CancellationToken ct = default)

Constructors