chore(rdp): fix command text and cred conversion (#1656)

This commit is contained in:
Irena Rindos authored and irenarindos committed 2025-09-02 15:13:31 -04:00
1 parent e8a5c5c80d
commit cac944d948
2 files changed
+12 -1

No files matched your search

@@ -89,7 +89,7 @@ func extraRdpFlagsFuncImpl(c *RdpCommand, set *base.FlagSets, f *base.FlagSet) {
fs.StringVar(&base.StringVar{
Name: "default-port",
Target: &c.flagDefaultPort,
Usage: "Optionally, the default port to set on the target. If not specified, it will be set to 22.",
Usage: "Optionally, the default port to set on the target. If not specified, it will be set to 3389.",
})
case "default-client-port":
fs.StringVar(&base.StringVar{
@@ -178,6 +178,17 @@ func staticToWorkerCredential(ctx context.Context, cred credential.Static) (sess
},
}
case *credstatic.UsernamePasswordDomainCredential:
workerCred = &serverpb.Credential{
Credential: &serverpb.Credential_UsernamePasswordDomain{
UsernamePasswordDomain: &serverpb.UsernamePasswordDomain{
Username: c.GetUsername(),
Password: string(c.GetPassword()),
Domain: c.GetDomain(),
},
},
}
case *credstatic.SshPrivateKeyCredential:
workerCred = &serverpb.Credential{
Credential: &serverpb.Credential_SshPrivateKey{