[X2Go-Commits] pyhoca-gui.git - twofactorauth (branch) updated: 0.4.0.8-10-g109d51d

X2Go dev team git-admin at x2go.org
Tue Sep 17 23:45:43 CEST 2013


The branch, twofactorauth has been updated
       via  109d51da8325b0c6eb8dea48f741a9e76ff2dc37 (commit)
      from  7e92874ea4b3e03afc77c1b571439555deb09ba3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 109d51da8325b0c6eb8dea48f741a9e76ff2dc37
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Sep 17 23:35:18 2013 +0200

    add some debug messages when tw-factor auth is requested by servers

-----------------------------------------------------------------------

Summary of changes:
 pyhoca/wxgui/frontend.py   |    3 +++
 pyhoca/wxgui/passphrase.py |    2 ++
 2 files changed, 5 insertions(+)

The diff of changes is:
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index bc2433e..96c530b 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -663,6 +663,8 @@ class PyHocaGUI(wx.App, x2go.X2GoClient):
             self._logon_windows[profile_name] = _logon_window
         except x2go.SSHException, e:
             if str(e).startswith('Two-factor authentication requires a password'):
+                self._pyhoca_logger('X2Go Server requests two-factor authentication', loglevel=x2go.loglevel_NOTICE)
+
                 _logon_window = logon.PyHocaGUI_DialogBoxPassword(self, profile_name,
                                                                   caller=self,
                                                                   sshproxy_auth=False,
@@ -682,6 +684,7 @@ class PyHocaGUI(wx.App, x2go.X2GoClient):
                 self.notifier.send(_(u'%s - SSH error') % profile_name, u'%s!' % errmsg, icon='auth_error', timeout=10000)
         except x2go.X2GoSSHProxyException, e:
             if str(e).startswith('Two-factor authentication requires a password'):
+                self._pyhoca_logger('SSH proxy host requests two-factor authentication', loglevel=x2go.loglevel_NOTICE)
                 _logon_window = logon.PyHocaGUI_DialogBoxPassword(self, profile_name,
                                                                   caller=self,
                                                                   sshproxy_auth=True,
diff --git a/pyhoca/wxgui/passphrase.py b/pyhoca/wxgui/passphrase.py
index 9a3fed5..5c9104f 100644
--- a/pyhoca/wxgui/passphrase.py
+++ b/pyhoca/wxgui/passphrase.py
@@ -273,6 +273,7 @@ class PyHocaGUI_DialogBoxPassphrase(wx.Dialog):
 
         except x2go.X2GoSSHProxyException, e:
             if str(e).startswith('Two-factor authentication requires a password'):
+                self._pyhoca_logger('SSH proxy host requests two-factor authentication', loglevel=x2go.loglevel_NOTICE)
                 _logon_window = logon.PyHocaGUI_DialogBoxPassword(self._PyHocaGUI, self.current_profile_name,
                                                                   caller=self,
                                                                   passphrase=passphrase,
@@ -303,6 +304,7 @@ class PyHocaGUI_DialogBoxPassphrase(wx.Dialog):
 
         except x2go.SSHException, e:
             if str(e).startswith('Two-factor authentication requires a password'):
+                self._pyhoca_logger('X2Go Server requests two-factor authentication', loglevel=x2go.loglevel_NOTICE)
                 _logon_window = logon.PyHocaGUI_DialogBoxPassword(self._PyHocaGUI, self.current_profile_name,
                                                                   caller=self,
                                                                   passphrase=passphrase,


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list