[X2Go-Commits] [pyhoca-cli] 01/02: pyhoca/cli/frontend.py: Check directly after authentication, if the remote host has the X2Go Server software installed.

git-admin at x2go.org git-admin at x2go.org
Sun Nov 11 13:29:59 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-cli.

commit 5dcd5633dfa55ba9e8ae66a8045f7371108e3864
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Nov 10 22:05:17 2018 +0000

    pyhoca/cli/frontend.py: Check directly after authentication, if the remote host has the X2Go Server software installed.
---
 debian/changelog       | 2 ++
 pyhoca/cli/frontend.py | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3578f84..58607d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ pyhoca-cli (0.6.0.1-0x2go1) UNRELEASED; urgency=medium
   [ Mike Gabriel ]
   * New upstream release (0.6.0.1):
     - Fix failing password-only authentication.
+    - pyhoca/cli/frontend.py: Check directly after authentication, if the
+      remote host has the X2Go Server software installed.
   * debian/control:
     + Set Section: from "python" to "x11". More appropriate.
 
diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 76ad762..411045a 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -653,6 +653,9 @@ class PyHocaCLI(x2go.X2GoClient):
         password = None
         passphrase = None
 
+        if not self.is_x2goserver(self.x2go_session_hash):
+            self._runtime_error('the remote server does not have the X2Go Server software installed', exitcode=1337)
+
     def MainLoop(self):
         """\
         Start the main loop of this application.

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git


More information about the x2go-commits mailing list