API Reference
Class
LdapToolResolveHelper
Helper for tool/UI scenarios: resolve batches of identities by DN and/or SID using 1-2 LDAP queries.
Inheritance
- Object
- LdapToolResolveHelper
Remarks
This centralizes DN detection, LDAP filter escaping, chunking and kind scoping in the engine so wrappers can stay thin.
Methods
public static String IdentityKindToToolString(IdentityKind kind) #Returns:
StringReturns a stable tool string for an identity kind.
Parameters
- kind ADPlayground.Helpers.LdapToolResolveHelper.IdentityKind
public static IdentityKind ParseIdentityKind(String value) #Returns:
IdentityKindParses an identity kind string for tool scenarios.
Parameters
- value System.String
public static ResolveResult ResolveByDnOrSid(String domainController, String baseDn, IReadOnlyList<String> identities, IdentityKind kind, String objectKind, IReadOnlyList<String> attributes, Int32 maxValuesPerAttribute, CancellationToken cancellationToken = null) #Returns:
ResolveResultResolves the provided identities by DN and/or SID.
Parameters
- domainController System.String
- DC host to query (null uses engine defaults).
- baseDn System.String
- Base DN for searching.
- identities System.Collections.Generic.IReadOnlyList{System.String}
- Inputs to resolve (trimmed, non-empty).
- kind ADPlayground.Helpers.LdapToolResolveHelper.IdentityKind
- How to interpret identities.
- objectKind System.String
- Optional object kind: any/user/group/computer (unrecognized treated as any).
- attributes System.Collections.Generic.IReadOnlyList{System.String}
- Attributes to return.
- maxValuesPerAttribute System.Int32
- Max values returned per attribute.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.