Make password optional for a RDP Config
This commit is contained in:
@@ -75,7 +75,6 @@ class ActionDispatcher:
|
|||||||
rdp_bin,
|
rdp_bin,
|
||||||
f"/v:{config['target']}",
|
f"/v:{config['target']}",
|
||||||
f"/u:{config['user']}",
|
f"/u:{config['user']}",
|
||||||
f"/p:{config['password']}",
|
|
||||||
"/auth-pkg-list:!kerberos,!u2u",
|
"/auth-pkg-list:!kerberos,!u2u",
|
||||||
"/sound",
|
"/sound",
|
||||||
"/audio-mode:0",
|
"/audio-mode:0",
|
||||||
@@ -85,6 +84,9 @@ class ActionDispatcher:
|
|||||||
"/f"
|
"/f"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if config.get('password', '') != "":
|
||||||
|
cmd.append(f"/p:{config['password']}")
|
||||||
|
|
||||||
if config.get('scale_desktop', '') != "":
|
if config.get('scale_desktop', '') != "":
|
||||||
cmd.append(f"/scale-desktop:{config['scale_desktop']}")
|
cmd.append(f"/scale-desktop:{config['scale_desktop']}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user