OneIdentity / SCALUS

SCALUS -- Session Client Application Launch Uri System
Apache License 2.0
11 stars 3 forks source link

Launch RDP not working #138

Closed phil210802 closed 8 months ago

phil210802 commented 9 months ago

I am able to connect to SSH and Telnet sessions using Scalus, however when I try and use Scalus to connect to RDP I am prompted by SPS to enter a target server.

Please see attached. scalus message (while trying to load rdp) sps enter target server

phil210802 commented 9 months ago

If however I download the RDP file and launch it, it works as expected.

CodyBatt commented 9 months ago

Please export your scalus config and post it here so we can try to reproduce with your same settings. What version of Windows are you on? Also what version of SPP is providing the URL? If you can grab the temporary rdp file mentioned in the SCALUS logs that can also help.

phil210802 commented 9 months ago

web.config

<?xml version="1.0" encoding="utf-8"?>

phil210802 commented 9 months ago

appsettings.json

{ "Logging": { "FileName": "scalus.log", "MinLevel": "Information", "Console": true }, "Configuration": { "FileName": "SCALUS.json" }, "Lifetime": { "IgnoreShutdown": false } }

CodyBatt commented 9 months ago

This is the file we need:

image

phil210802 commented 9 months ago

Sorry.

Here you go.

Thanks. scalus.json

CodyBatt commented 9 months ago

What version of windows and what version of SPP?

phil210802 commented 9 months ago

SPP 7.4, SPS 7.4

phil210802 commented 9 months ago

Windows 10 22H2 (OS Build 19045.3570)

CodyBatt commented 9 months ago

Scalus takes the URL from SPP and parses it into properties then writes out a temporary RDP file according to one of the installed templates and launches it with RDP client.

Either:

Can you try again and paste here the full text of the URL being launched:

image

The contents of the temporary RDP file (it's just a text file): image

And the contents of the working RDP file returned from SPP?

@JaredCuster

phil210802 commented 9 months ago

@CodyBatt & @JaredCuster

Details as per request.

Thx.

scalas created rdp file.txt spp created rdp file.txt WinRdpTemplate.txt

phil210802 commented 9 months ago

image

CodyBatt commented 9 months ago

So this is the working username:

username:s:vaultaddress~20.5.19.50%token~A5HabfCeZPZDk6h2Bo4BqyAWiB4JZvNNbfwqZHWxBjXLS8CHmJGKBy63Ag8bmWZWRtu75b2vd3VGyVg2W4%admin_1@pf1idlab.local%20.5.19.11

And this is the incorrect username. Pretty obviously has invalid characters:

username:s:pf1idlab.local\vaultaddress~20.5.19.50%token~A5KvBHRJDcscWqGXYsHSw4xynemEGEcGQeAbQcCSqa2NbGRPzkXNREPqrfWN238kXuZtyJi4mLs66LDaj9�min_1 .5.19.11:3389

Defintely looks like a scalus bug.

JaredCuster commented 8 months ago

@phil210802 unable reproduce, can you attach the scalus.log file please.