Compare commits

...

1 Commits

Author SHA1 Message Date
Svitlana Ponomarova
c49ac99b27 fix(TBD-15341): Enable 'username' and 'password' only for LDAP auth in Impala 2023-06-13 16:33:14 +03:00

View File

@@ -691,8 +691,11 @@ public class DatabaseForm extends AbstractForm {
urlConnectionStringText.setText(getConnection().getURL());
}
usernameText.setText(getConnection().getUsername());
passwordText.setText(getConnection().getRawPassword());
if (!isDBTypeSelected(EDatabaseConnTemplate.IMPALA)) {
usernameText.setText(getConnection().getUsername());
passwordText.setText(getConnection().getRawPassword());
}
serverText.setText(getConnection().getServerName());
portText.setText(getConnection().getPort());
datasourceText.setText(getConnection().getDatasourceName());
@@ -4035,6 +4038,9 @@ public class DatabaseForm extends AbstractForm {
keytabForImpalaTxt.setText(StringUtils.trimToEmpty(keytab));
}
impalaPrincipalTxt.setText(StringUtils.trimToEmpty(masterPrincipal));
} else {
usernameText.setText(getConnection().getUsername());
passwordText.setText(getConnection().getRawPassword());
}
hideControl(keyTabCompoisteForImpala, !useKeytab);
hideControl(authenticationComForImpala, !useKrb);