TestimoX

API Reference

Class

LdapQueryPolicy

Namespace ADPlayground.Helpers
Assembly ADPlayground
Modifiers static

Shared policy/helpers for LDAP query tools (caps, defaults, sensitive attributes).

Inheritance

  • Object
  • LdapQueryPolicy

Remarks

This keeps AD-specific conventions inside ADPlayground so downstream tool wrappers can stay thin.

Methods

public static IEnumerable<String> DedupPreserveOrder(IEnumerable<String> items) #
Returns: IEnumerable<String>

Deduplicates an attribute list preserving the input order (case-insensitive).

Parameters

items System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
public static Void EnsureIncluded(List<String> attributes, String name) #
Returns: Void

Ensures an attribute is included in the list, inserting it at the start when missing.

Parameters

attributes System.Collections.Generic.List{System.String} requiredposition: 0
name System.String requiredposition: 1
public static Boolean LooksLikeLdapFilter(String filter) #
Returns: Boolean

Returns true if the value looks like a valid LDAP filter string.

Parameters

filter System.String requiredposition: 0
public static SearchScope ParseScope(String value) #
Returns: SearchScope

Parses a tool-style string into SearchScope (defaults to Subtree).

Parameters

value System.String requiredposition: 0
public static String ScopeToString(SearchScope scope) #
Returns: String

Converts SearchScope to the tool-style string used in JSON outputs.

Parameters

scope System.DirectoryServices.SearchScope requiredposition: 0

Fields

public const Int32 DefaultMaxValuesPerAttribute #

Default cap for values returned per multi-valued attribute.

Value: 50
public const Int32 MaxValuesPerAttributeCap #

Hard cap for values returned per multi-valued attribute.

Value: 200
public const Int32 DefaultMaxAttributes #

Default cap for number of requested attributes.

Value: 20
public const Int32 MaxAttributesCap #

Hard cap for number of requested attributes.

Value: 100
public static readonly HashSet<String> SensitiveAttributes #

Attribute names that may expose secrets/credentials and should be explicitly opted into.

public static readonly String[] DefaultAttributes #

Small safe default attribute set for "show me results" scenarios.