TestimoX

API Reference

Class

TrustAttributeUpdater

Namespace ADPlayground.Trusts
Assembly ADPlayground
Modifiers static

Low-level helpers to update trustedDomain attributes when native APIs are unavailable. Operations can run in dry-run mode for planning.

Inheritance

  • Object
  • TrustAttributeUpdater

Methods

public static Void SetKerberosEncryptionTypes(String sourceDomain, String targetDomain, IEnumerable<String> types, Boolean dryRun) #
Returns: Void

Sets the msDS-SupportedEncryptionTypes for a trustedDomain object by mask.

Parameters

sourceDomain System.String requiredposition: 0
Source domain.
targetDomain System.String requiredposition: 1
Target domain.
types System.Collections.Generic.IEnumerable{System.String} requiredposition: 2
List of algorithm names (e.g., AES128, AES256, RC4).
dryRun System.Boolean requiredposition: 3
When true, no changes are committed.
public static Void SetSelectiveAuthentication(String sourceDomain, String targetDomain, Boolean enable, Boolean dryRun) #
Returns: Void

Enables or disables selective authentication on a trust. Attempts native API first, then falls back to LDAP attribute update.

Parameters

sourceDomain System.String requiredposition: 0
Source domain.
targetDomain System.String requiredposition: 1
Target domain.
enable System.Boolean requiredposition: 2
True to enable, false to disable.
dryRun System.Boolean requiredposition: 3
When true, prints nothing and does not modify directory.
public static Void SetSidFiltering(String sourceDomain, String targetDomain, Boolean enable, Boolean dryRun) #
Returns: Void

Enables or disables SID filtering on a trust.

Parameters

sourceDomain System.String requiredposition: 0
Source domain.
targetDomain System.String requiredposition: 1
Target domain.
enable System.Boolean requiredposition: 2
True to enable, false to disable.
dryRun System.Boolean requiredposition: 3
When true, no changes are committed.
public static Void SetTgtDelegation(String sourceDomain, String targetDomain, Boolean enable, Boolean dryRun) #
Returns: Void

Enables or disables TGT delegation across a trust.

Parameters

sourceDomain System.String requiredposition: 0
Source domain.
targetDomain System.String requiredposition: 1
Target domain.
enable System.Boolean requiredposition: 2
True to enable, false to disable.
dryRun System.Boolean requiredposition: 3
When true, no changes are committed.