TRINITY logoTRINITYVDI

TRINITY VDI / Documentation / 1. Active Directory, DNS and CA

1. Plan and prepare Active Directory

Plan names and addresses, create DNS records and the admin group, check the enterprise CA and LDAPS, and fix the domain time before installing TRINITY.

Download the packages
Documentation pages

1.1 Names and addresses

The examples in this guide use this plan. Replace the names, addresses and domain with yours everywhere.

Role Server names Addresses VIP name and address
Domain controllers, DNS dc1, dc2 10.0.10.5, 10.0.10.6
Certificate authority ca01 10.0.10.7
NFS storage nas01 10.0.10.10
PostgreSQL pg01 10.0.10.20
VDI gateways (DMZ) gw01, gw02 172.16.10.21, 172.16.10.22 vdi, 172.16.10.23
Connection servers cs01, cs02 10.0.10.24, 10.0.10.25 cs, 10.0.10.26
Recording servers rs01, rs02 10.0.10.27, 10.0.10.28 rec, 10.0.10.29
ntfy ntfy01, ntfy02 10.0.10.30, 10.0.10.31 ntfy, 10.0.10.32
Portal trinity01, trinity02, witness trinity03 10.0.10.33, 10.0.10.34, 10.0.10.35 trinity, 10.0.10.36

AD domain corp.example.com (NetBIOS CORP), gateway of the server network 10.0.10.1, public names vdi.example.com and ntfy.example.com.

1.2 DNS records

On a domain controller, elevated PowerShell:

$zone = 'corp.example.com'
$records = [ordered]@{
  'pg01' = '10.0.10.20'; 'cs01' = '10.0.10.24'; 'cs02' = '10.0.10.25'; 'cs' = '10.0.10.26'
  'rs01' = '10.0.10.27'; 'rs02' = '10.0.10.28'; 'rec' = '10.0.10.29'
  'ntfy01' = '10.0.10.30'; 'ntfy02' = '10.0.10.31'; 'ntfy' = '10.0.10.32'
  'trinity01' = '10.0.10.33'; 'trinity02' = '10.0.10.34'; 'trinity03' = '10.0.10.35'; 'trinity' = '10.0.10.36'
  'gw01' = '172.16.10.21'; 'gw02' = '172.16.10.22'
}
foreach ($r in $records.GetEnumerator()) {
  Add-DnsServerResourceRecordA -ZoneName $zone -Name $r.Key -IPv4Address $r.Value -CreatePtr
}

-CreatePtr needs the reverse zones; create them first if they are missing. The public names vdi.example.com and ntfy.example.com go into your public DNS (chapter 11).

1.3 AD group of the administrators

New-ADGroup -Name 'GG-Trinity-Admins' -GroupScope Global -GroupCategory Security
Add-ADGroupMember -Identity 'GG-Trinity-Admins' -Members $env:USERNAME
setspn -Q HTTP/trinity.corp.example.com      # must find nothing yet

You also need an AD account allowed to join computers to the domain: the portal setup uses it once.

1.4 Certificate authority and LDAPS

The gateways sign users in over LDAPS, so every domain controller needs a certificate, and the TRINITY servers use certificates from the same CA. Check that the forest has an enterprise CA:

$cfg = (Get-ADRootDSE).configurationNamingContext
Get-ADObject -SearchBase "CN=Enrollment Services,CN=Public Key Services,CN=Services,$cfg" -Filter * -Properties dNSHostName |
  Select-Object Name, dNSHostName

With an enterprise CA, domain controllers enrol a Domain Controller certificate by themselves and LDAPS works. Without one, install it on a member server (not a domain controller), only after deciding it with whoever owns the forest:

Install-WindowsFeature ADCS-Cert-Authority -IncludeManagementTools
Install-AdcsCertificationAuthority -CAType EnterpriseRootCa -CACommonName 'Corp Root CA' `
  -KeyLength 4096 -HashAlgorithmName SHA256 -ValidityPeriod Years -ValidityPeriodUnits 10
certutil -pulse

Export the root certificate for the Linux servers:

New-Item -ItemType Directory -Force C:\Temp\certs | Out-Null
certutil '-ca.cert' C:\Temp\certs\corp-root.cer

1.5 The domain's time

Every server takes its time from the domain controllers; Kerberos and the authenticator codes need it right. Check the PDC emulator against the internet:

(Get-ADDomain).PDCEmulator
w32tm /query /source
w32tm /stripchart /computer:pool.ntp.org /samples:3 /dataonly

Three offsets under 1 second are fine. If the source is Local CMOS Clock, give the PDC emulator an internet time source:

w32tm /config /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8" /syncfromflags:manual /reliable:yes /update
Restart-Service w32time
w32tm /resync /rediscover

Names, addresses and accounts in the examples (corp.example.com, 10.0.x.x, CORP\…) are examples: use your own. TRINITY 1.2.1, December 2026.