Merge pull request #131 from jamesrenaud/MR-910_RDP_Gateway_Credentials_Applied_Incorrectly

MR-910 Fixes to support Remote Desktop Gateways
This commit is contained in:
David Sparer
2016-07-13 18:13:58 -06:00
committed by GitHub

View File

@@ -341,21 +341,21 @@ namespace mRemoteNG.Connection.Protocol.RDP
{
if (_connectionInfo.RDGatewayUseConnectionCredentials == RDGatewayUseConnectionCredentials.Yes)
{
//_rdpClient.TransportSettings2.GatewayUsername = _connectionInfo.Username;
//_rdpClient.TransportSettings2.GatewayPassword = _connectionInfo.Password;
//_rdpClient.TransportSettings2.GatewayDomain = _connectionInfo.Domain;
_rdpClient.TransportSettings2.GatewayUsername = _connectionInfo.Username;
_rdpClient.TransportSettings2.GatewayPassword = _connectionInfo.Password;
_rdpClient.TransportSettings2.GatewayDomain = _connectionInfo.Domain;
}
else if (_connectionInfo.RDGatewayUseConnectionCredentials == RDGatewayUseConnectionCredentials.SmartCard)
{
//_rdpClient.TransportSettings2.GatewayCredSharing = 0;
_rdpClient.TransportSettings2.GatewayCredSharing = 0;
}
else
{
//_rdpClient.TransportSettings2.GatewayUsername = _connectionInfo.RDGatewayUsername;
//_rdpClient.TransportSettings2.GatewayPassword = _connectionInfo.RDGatewayPassword;
//_rdpClient.TransportSettings2.GatewayDomain = _connectionInfo.RDGatewayDomain;
//_rdpClient.TransportSettings2.GatewayCredSharing = 0;
}
_rdpClient.TransportSettings2.GatewayUsername = _connectionInfo.RDGatewayUsername;
_rdpClient.TransportSettings2.GatewayPassword = _connectionInfo.RDGatewayPassword;
_rdpClient.TransportSettings2.GatewayDomain = _connectionInfo.RDGatewayDomain;
_rdpClient.TransportSettings2.GatewayCredSharing = 0;
}
}
}
}
@@ -882,4 +882,4 @@ namespace mRemoteNG.Connection.Protocol.RDP
}
#endregion
}
}
}