chore(rdp): fix command text and cred conversion (#1656)
This commit is contained in:
1 parent
e8a5c5c80d
commit
cac944d948
2 files changed
+12
-1
No files matched your search
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user