提交 7e70c62c 编写于 作者: S Serge Rider

#1115 SSH tunnel password acquire fix


Former-commit-id: beed176c
上级 1cc59b2a
......@@ -672,7 +672,7 @@ public class DataSourceDescriptor
monitor.subTask("Initialize tunnel");
tunnel = tunnelConfiguration.createHandler(DBWTunnel.class);
try {
if (tunnel.needsPassword(tunnelConfiguration)) {
if (!tunnelConfiguration.isSavePassword() && tunnel.needsPassword(tunnelConfiguration)) {
if (!DataSourceHandler.askForPassword(this, tunnelConfiguration)) {
DataSourceHandler.updateDataSourceObject(this);
tunnel = null;
......
......@@ -201,7 +201,7 @@ public class SSHTunnelImpl implements DBWTunnel {
if (sshAuthType != null) {
authType = SSHConstants.AuthType.valueOf(sshAuthType);
}
return authType == SSHConstants.AuthType.PASSWORD && !configuration.isSavePassword();
return authType == SSHConstants.AuthType.PASSWORD;
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册