This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2goclient. from 24db52c debian/changelog: syntax fixup. new 90a8d54 src/sshmasterconnection.cpp: error out with a useful error message in case no password has been provided when doing password authentication. new 7d52367 src/sshmasterconnection.cpp: don't output an empty error message if password authencation has been requested but the server does not support this mechanism. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 5 +++++ src/sshmasterconnection.cpp | 8 ++++++++ 2 files changed, 13 insertions(+) -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goclient. commit 7d52367b3678df74fea53343486ba420683bb75d Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Nov 13 22:34:38 2017 +0100 src/sshmasterconnection.cpp: don't output an empty error message if password authencation has been requested but the server does not support this mechanism. --- debian/changelog | 3 +++ src/sshmasterconnection.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index 68dbcb2..79d3915 100644 --- a/debian/changelog +++ b/debian/changelog @@ -29,6 +29,9 @@ x2goclient (4.1.1.1-0x2go1) UNRELEASED; urgency=medium directly. - src/sshmasterconnection.cpp: error out with a useful error message in case no password has been provided when doing password authentication. + - src/sshmasterconnection.cpp: don't output an empty error message if + password authencation has been requested but the server does not support + this mechanism. [ Oleksandr Shneyder ] * New upstream version (4.1.1.1): diff --git a/src/sshmasterconnection.cpp b/src/sshmasterconnection.cpp index 9635aa2..be327c6 100644 --- a/src/sshmasterconnection.cpp +++ b/src/sshmasterconnection.cpp @@ -1305,6 +1305,13 @@ bool SshMasterConnection::userAuthWithPass() } } + if ((!ret) && (method & ~SSH_AUTH_METHOD_PASSWORD)) { + /* In case password auth is disabled, make sure the error message is not empty. */ + QString err = ssh_get_error (my_ssh_session); + authErrors << err; + x2goDebug << "Password authentication not available: " << err << endl; + } + return (ret); } -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goclient. commit 90a8d540cdc6da8bbb1f40b6457a3843794b1386 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Nov 13 22:33:25 2017 +0100 src/sshmasterconnection.cpp: error out with a useful error message in case no password has been provided when doing password authentication. --- debian/changelog | 2 ++ src/sshmasterconnection.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/debian/changelog b/debian/changelog index 8f3b86c..68dbcb2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -27,6 +27,8 @@ x2goclient (4.1.1.1-0x2go1) UNRELEASED; urgency=medium output. - res/i18n/x2goclient_*.ts: apply last change to translation files directly. + - src/sshmasterconnection.cpp: error out with a useful error message in + case no password has been provided when doing password authentication. [ Oleksandr Shneyder ] * New upstream version (4.1.1.1): diff --git a/src/sshmasterconnection.cpp b/src/sshmasterconnection.cpp index 0cfb5d8..9635aa2 100644 --- a/src/sshmasterconnection.cpp +++ b/src/sshmasterconnection.cpp @@ -1286,6 +1286,7 @@ bool SshMasterConnection::userAuthWithPass() } if (keyPhrase.isNull ()) { + authErrors << "No password provided."; return (ret); } else { -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git