- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
04-24-2025 01:17 AM
Hi all,
I'm facing an issue in a very specific PSM use case that I'd like to have your views on to know if:
a. There is a bug or misconfiguration somewhere and the behavior is unexpected
b. The behavior is by design and there is / there is not a solution or workaround to it
I'm using a customized "PSM AutoIt Dispatcher Skeleton" to establish VNC connections using a RealVNC client installed on the PSM server.
This works pretty well, no troubles so far.
The very specific use case is this one:
At first glance the behaviour looks sound: same CyberArk user starts two PSM sessions on the same PSM server so the same shadow user is being used.
That's a situation that doesn't occur for the RDP connection component since it doesn't rely or need a shadow user so same CyberArk user can start several RDP sessions on the same PSM server without issues.
Have you already been in the same situation with a connection component that relies on the shadow user ?
What did you do to fix or workaround the issue ?
Ideas that come to mind but that are less than satisfactory:
Sorry, that was a long one. I would really appreciate if you read it up to this point and could share your views.
Best regards
Marc
04-25-2025 12:50 AM
Thanks for the feedback, you're a lifesaver.
If by outside of CyberArk you meant running my au3 script with the /test script on the PSM server then this is what I tried.
Running it twice would basically reproduce the same issue I saw in PSM session, just that they occurred in my single admin RDP session on the server.
So I started tweaking the au3 script to get rid of that issue and I got rid of it in test mode.
The shock came when I tried again opening two PSM sessions with the same CyberArk user toward two VNC hosts and this time, each VNC client managed to connect within its own PSM session, not merging with the other one like before.
I haven't changed anything to the shadow user or any other aspect of the scenario, just modified the au3 script, so call me a bit puzzled here.
I really thought that in this specific scenario, the session isolation was no longer possible but I do have two separate PSMConnect user sessions on that PSM, albeit relying on same shadow user.
The most likely explanation for my problem, was that the VNC window handle and PID retrieval in the au3 got mixed up when two sessions were running on the same PSM which caused this "permeability" between the PSM sessions, and fixing the script got rid of the issue.
Again, many thanks for fueling the reflection and allowing me to find the solution.
04-24-2025 04:35 AM
Hey @Marc Fom
Very well explained and written question! Also, rather Interesting.
I'm curious, Does the VNC connection act the same outside of CyberArk?
For instance, if you run the program with the same user from the same machine, and attempt to log in twice, does it react the same? If so, then it would be suggested to run the sessions on two different machines, as you suggest above.
-Matt
04-25-2025 12:50 AM
Thanks for the feedback, you're a lifesaver.
If by outside of CyberArk you meant running my au3 script with the /test script on the PSM server then this is what I tried.
Running it twice would basically reproduce the same issue I saw in PSM session, just that they occurred in my single admin RDP session on the server.
So I started tweaking the au3 script to get rid of that issue and I got rid of it in test mode.
The shock came when I tried again opening two PSM sessions with the same CyberArk user toward two VNC hosts and this time, each VNC client managed to connect within its own PSM session, not merging with the other one like before.
I haven't changed anything to the shadow user or any other aspect of the scenario, just modified the au3 script, so call me a bit puzzled here.
I really thought that in this specific scenario, the session isolation was no longer possible but I do have two separate PSMConnect user sessions on that PSM, albeit relying on same shadow user.
The most likely explanation for my problem, was that the VNC window handle and PID retrieval in the au3 got mixed up when two sessions were running on the same PSM which caused this "permeability" between the PSM sessions, and fixing the script got rid of the issue.
Again, many thanks for fueling the reflection and allowing me to find the solution.
04-25-2025 05:11 AM
Great! Very nice to hear it's working now. I'm glad I could help lead you to the right path.
-Matt
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

