Joustie's blog

Jan 22, 2022 - 2 minute read

Playing around with NICE DCV Part 5

It’s solution time! NICE DCV has an very excellent support team, and after some email back and forth, it started to work.

Mea culpa, I made a couple of mistakes during installation.

  • I forgot to configure the NICE DCV server to use the session-manager for external authentication. When a client connects to the NICE DCV server port, it needs to receive an authentication token that is generated and passed through to the DCV client.
  • I had misconfigured my AWS Security Group that is in use for my VPC to let the DCV client access other machines (DCV gateway, Broker) on ports other than the Agent port.

So the proces I describe here is a bit different:

My understanding of the how this should work has changed:

  1. DCV Agent registers at DCV session manager
  2. Request a session with dcvcm CLI tool which talks to the session manager
  3. The session manager contacts the agent on the DCV server and requests a DCV session
  4. The agent creates a session and returns the ID
  5. The session manager at this point or at point 3 creates a security token for the DCV client to use
  6. The session manager returns the result (with the ID) to the request made in (2)
  7. To retrieve the security token, run a describe-session with dcvcm CLI with the ID returned
  8. DCV client connects to gateway (the ID and security token)
  9. DCV gateway queries session manager
  10. DCV client connects to DCV server through gateway
  11. The DCV server verifies the security token by asking the session-manager
  12. The DCV client gets login screen/desktop