Make password optional for a RDP Config
This commit is contained in:
1 parent
1436f4ecb8
commit
9b8cffcc39
1 file changed
+3
-1
+3
-1
@@ -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