Skip to content

Use a single method to get or prompt for connection's password#3329

Merged
buzzia2001 merged 2 commits into
masterfrom
tempPassword
Jun 25, 2026
Merged

Use a single method to get or prompt for connection's password#3329
buzzia2001 merged 2 commits into
masterfrom
tempPassword

Conversation

@sebjulliand

Copy link
Copy Markdown
Member

Changes

Resolves #3327

This PR provides a single internal method to retrieve the connection stored password or prompt and temporary store it for the duration of the connection if there's no stored password.

This avoids prompting multiple times for the password in case it's not stored or if the connection uses a private key or an SSH agent.

How to test this PR

  1. Update connection settings to connect to a Mapepire server
  2. Connect using a private key
  3. A prompt to provide the password for Mapepire should show up once
  4. The connection must succeed
  5. Db2 for i connection should not prompt for a password
  6. Starting another Db2 for i DB job should not prompt for a password

Checklist

  • have tested my change

Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
@sebjulliand sebjulliand requested a review from a team June 24, 2026 21:35
@sebjulliand sebjulliand self-assigned this Jun 24, 2026
@sebjulliand sebjulliand added the enhancement New feature or request label Jun 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 A new build is available for this PR based on 63a8cc1.

@buzzia2001 buzzia2001 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thank you @sebjulliand

@buzzia2001 buzzia2001 merged commit 2817521 into master Jun 25, 2026
4 checks passed
@sebjulliand sebjulliand deleted the tempPassword branch June 25, 2026 20:58
@sebjulliand

Copy link
Copy Markdown
Member Author

Grazie @buzzia2001 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mapepire Server Requests Password. Twice.

2 participants