Skip to content

Commit

Permalink
dbeaver#3365 Oracle expired password change (note).
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Apr 21, 2018
1 parent 5c5a8bc commit 0fb3429
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ protected Connection openConnection(@NotNull DBRProgressMonitor monitor, @NotNul
}

private boolean changeExpiredPassword(DBRProgressMonitor monitor) {
// Ref: https://stackoverflow.com/questions/21733300/oracle-password-expiry-and-grace-period-handling-using-java-oracle-jdbc

DBPConnectionConfiguration connectionInfo = getContainer().getActualConnectionConfiguration();
DBAPasswordChangeInfo passwordInfo = DBUserInterface.getInstance().promptUserPasswordChange("Password has expired. Set new password.", connectionInfo.getUserName(), connectionInfo.getUserPassword());
if (passwordInfo == null) {
Expand Down

0 comments on commit 0fb3429

Please sign in to comment.