API Reference
LdapQueryPolicy
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) #IEnumerable<String>Deduplicates an attribute list preserving the input order (case-insensitive).
Parameters
- items System.Collections.Generic.IEnumerable{System.String}
public static Void EnsureIncluded(List<String> attributes, String name) #VoidEnsures an attribute is included in the list, inserting it at the start when missing.
Parameters
- attributes System.Collections.Generic.List{System.String}
- name System.String
public static Boolean LooksLikeLdapFilter(String filter) #BooleanReturns true if the value looks like a valid LDAP filter string.
Parameters
- filter System.String
public static SearchScope ParseScope(String value) #SearchScopeParses a tool-style string into SearchScope (defaults to Subtree).
Parameters
- value System.String
public static String ScopeToString(SearchScope scope) #StringConverts SearchScope to the tool-style string used in JSON outputs.
Parameters
- scope System.DirectoryServices.SearchScope
Inherited Methods
Fields
public const Int32 DefaultMaxValuesPerAttribute #Default cap for values returned per multi-valued attribute.
50public const Int32 MaxValuesPerAttributeCap #Hard cap for values returned per multi-valued attribute.
200public 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.