[X2Go-Commits] [x2goclient] 02/04: Do not attempt to perform Interaction with SSH Server
git-admin at x2go.org
git-admin at x2go.org
Thu Mar 1 02:56:44 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch release/4.1.1.1-mswin
in repository x2goclient.
commit d6485b2c04a50f5dbaf6b1f751b5120e589fa118
Author: Mike DePaulo <mikedep333 at gmail.com>
Date: Sun Feb 18 19:52:22 2018 -0500
Do not attempt to perform Interaction with SSH Server
(e.g. for changing expired password) when using GSSAPI/Kerberos
because the interaction code does not support it yet.
---
debian/changelog | 3 +++
src/sshmasterconnection.cpp | 38 ++++++++++++++++++++++----------------
2 files changed, 25 insertions(+), 16 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 35e1c0b..4463ac7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
x2goclient (4.1.1.1-2018.03.01) unstable; urgency=medium
[ Mike DePaulo ]
* New upstream version (4.1.1.1-2018.03.01):
+ - src/sshmasterconnection.cpp: Do not attempt to perform Interaction with
+ SSH Server (e.g. for changing expired password) when using
+ GSSAPI/Kerberos because the interaction code does not support it yet.
-- Mike DePaulo <mikedep333 at gmail.com> Wed, 28 Feb 2018 20:53:41 -0500
diff --git a/src/sshmasterconnection.cpp b/src/sshmasterconnection.cpp
index be327c6..0772f3f 100644
--- a/src/sshmasterconnection.cpp
+++ b/src/sshmasterconnection.cpp
@@ -725,23 +725,29 @@ void SshMasterConnection::run()
#ifdef DEBUG
x2goDebug<<"User authentication OK.";
#endif
- if(checkLogin())
- {
- x2goDebug<<"Login Check - OK";
+ // checkLogin() is currently specific to libssh.
+ if(kerberos)
emit connectionOk(host);
- }
- else
- {
- x2goDebug<<"Login Check - Failed";
-// if(!interactionInterrupt)
- {
- emit finishInteraction(this);
- }
- ssh_disconnect ( my_ssh_session );
- ssh_free ( my_ssh_session );
- quit();
- return;
- }
+ else
+ {
+ if(checkLogin())
+ {
+ x2goDebug<<"Login Check - OK";
+ emit connectionOk(host);
+ }
+ else
+ {
+ x2goDebug<<"Login Check - Failed";
+// if(!interactionInterrupt)
+ {
+ emit finishInteraction(this);
+ }
+ ssh_disconnect ( my_ssh_session );
+ ssh_free ( my_ssh_session );
+ quit();
+ return;
+ }
+ }
}
else
{
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list