API Reference
Class
TrustAttributeUpdater
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:
VoidSets the msDS-SupportedEncryptionTypes for a trustedDomain object by mask.
Parameters
- sourceDomain System.String
- Source domain.
- targetDomain System.String
- Target domain.
- types System.Collections.Generic.IEnumerable{System.String}
- List of algorithm names (e.g., AES128, AES256, RC4).
- dryRun System.Boolean
- When true, no changes are committed.
public static Void SetSelectiveAuthentication(String sourceDomain, String targetDomain, Boolean enable, Boolean dryRun) #Returns:
VoidEnables or disables selective authentication on a trust. Attempts native API first, then falls back to LDAP attribute update.
Parameters
- sourceDomain System.String
- Source domain.
- targetDomain System.String
- Target domain.
- enable System.Boolean
- True to enable, false to disable.
- dryRun System.Boolean
- When true, prints nothing and does not modify directory.
public static Void SetSidFiltering(String sourceDomain, String targetDomain, Boolean enable, Boolean dryRun) #Returns:
VoidEnables or disables SID filtering on a trust.
Parameters
- sourceDomain System.String
- Source domain.
- targetDomain System.String
- Target domain.
- enable System.Boolean
- True to enable, false to disable.
- dryRun System.Boolean
- When true, no changes are committed.
public static Void SetTgtDelegation(String sourceDomain, String targetDomain, Boolean enable, Boolean dryRun) #Returns:
VoidEnables or disables TGT delegation across a trust.
Parameters
- sourceDomain System.String
- Source domain.
- targetDomain System.String
- Target domain.
- enable System.Boolean
- True to enable, false to disable.
- dryRun System.Boolean
- When true, no changes are committed.