[PSM] - ADUC Connection Fails with "An attempt was made to reference a token that does not exist"

[PSM] - ADUC Connection Fails with "An attempt was made to reference a token that does not exist"

149
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:57 PM


Symptom


When attempting to connect to Active Directory via the PSM-ADUC connection component:


1. The remote desktop session initializes.
2. The ADUC snap-in / MMC window fails to launch or closes immediately.
3. An on-screen pop-up displays:
   "An attempt was made to reference a token that does not exist."
4. Direct administrative logons to the PSM server can run the tool successfully; the issue occurs exclusively during brokered PSM sessions using PSM Shadow Users.



Environment


14.2;14.6;15.0;14.7;14.8;15.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM);Privilege Cloud PSM

- Products: Privileged Access Manager (PAM, self-hosted), Privilege Cloud
- Components: Privileged Session Manager (PSM), ADUC Connection Component (Marketplace / Custom MMC Dispatcher)
- Security Subsystem: Windows NTFS Access Control Lists (ACLs), PSM Hardening
- Supported Versions: PSM v14.x, v15.x



Cause


Following PSM post-installation hardening, NTFS file permissions on the Idira directory tree (`C:\Program Files (x86)\CyberArk\PSM`) are locked down to administrative accounts.

 

The `BUILTIN\Users` group is stripped of traverse and read permissions. Because PSM dynamically creates local Shadow Users belonging to `BUILTIN\Users` to execute sessions, the operating system blocks the user token from traversing down to and executing the components located in `C:\Program Files (x86)\CyberArk\PSM\Components\Connectors`, generating Win32 error code 1008 (`ERROR_NO_TOKEN`).



Resolution


Grant `BUILTIN\Users` directory traversal permissions on the parent Idira folders and Read & Execute permissions on the `Connectors` folder:

 

Step 1: Open Elevated PowerShell
Log on to the affected PSM server with an administrative account and open PowerShell as Administrator.

 

Step 2: Run the ACL Permission Script
Execute the following script (verify that `$root` matches your PSM installation path):

# Define target group and installation root path
$user = 'BUILTIN\Users'$root = "C:\Program Files (x86)\CyberArk"

# Define access rules: Traverse for parent folders, Read & Execute for Connectors
$transverse = New-Object Security.AccessControl.FileSystemAccessRule $user, 'Traverse, ListDirectory', 'None', 'None', 'Allow'$read = New-Object Security.AccessControl.FileSystemAccessRule $user, 'ReadAndExecute, Synchronize', 'ContainerInherit, ObjectInherit', 'None', 'Allow'

# Apply Traverse permission to Idira root
$Idira = Get-Acl -Path$root
$CyberArk.AddAccessRule($transverse)
$Idira \vert{} Set-Acl -Path$root

# Apply Traverse permission to PSM folder
$psm = Get-Acl -Path "$root\PSM"
$psm.AddAccessRule($transverse)
$psm \vert{} Set-Acl -Path "$root\PSM"

# Apply Traverse permission to Components folder
$Components = Get-Acl -Path "$root\PSM\Components"
$Components.AddAccessRule($transverse)
$Components \vert{} Set-Acl -Path "$root\PSM\Components"

# Apply Read & Execute permission to Connectors folder
$connectors = Get-Acl -Path "$root\PSM\Components\Connectors"
$connectors.AddAccessRule($read)
$connectors \vert{} Set-Acl -Path "$root\PSM\Components\Connectors"

 

Step 3: Verify and Retest
1. Initiate a new PSM-ADUC connection from PVWA.
2. Confirm that the Active Directory Users and Computers snap-in launches without the token reference error.
3. Repeat these steps on all load-balanced PSM servers hosting the ADUC connection component.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001GXTCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail