[X2Go-Commits] x2gobroker.git - uccsoutput (branch) updated: 0.0.1.0-76-ga7da5f7
X2Go dev team
git-admin at x2go.org
Fri Apr 19 16:24:08 CEST 2013
The branch, uccsoutput has been updated
via a7da5f74195abfd7b40f4fbf902f4329186ac17b (commit)
via a53f3b66d7f514295bd071871211ec82ad4d1147 (commit)
from cd6780f54b5ad4df8e3d83d7ecdfaca58d78cfdd (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 a7da5f74195abfd7b40f4fbf902f4329186ac17b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Apr 19 16:23:31 2013 +0200
fix pam_authmech.py
commit a53f3b66d7f514295bd071871211ec82ad4d1147
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Apr 19 15:52:34 2013 +0200
more unicode fixes in uccsjson.py
-----------------------------------------------------------------------
Summary of changes:
x2gobroker/authmechs/pam_authmech.py | 3 ++-
x2gobroker/uccsjson.py | 14 +++++++++-----
2 files changed, 11 insertions(+), 6 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/authmechs/pam_authmech.py b/x2gobroker/authmechs/pam_authmech.py
index 3eb0b3c..a596411 100644
--- a/x2gobroker/authmechs/pam_authmech.py
+++ b/x2gobroker/authmechs/pam_authmech.py
@@ -24,6 +24,7 @@ import pam
# X2Go Session Broker modules
import x2gobroker.authservice
+from x2gobroker.loggers import logger_error
class X2GoBrokerAuthMech(object):
@@ -36,7 +37,7 @@ class X2GoBrokerAuthMech(object):
return True
except error:
- logger_error.error('Authentication against authentication service failed, trying direct PAM authentication (which is likely to fail on most PAM setups).'.format(username=username, service=service))
+ logger_error.error('Authentication against authentication service failed, trying direct PAM authentication (which is likely to fail on most PAM setups).')
# fallback to direct PAM authentication against the PAM service ,,x2gobroker''
if pam.authenticate(username, password, service="x2gobroker"):
return True
diff --git a/x2gobroker/uccsjson.py b/x2gobroker/uccsjson.py
index efbbc32..ca61dab 100644
--- a/x2gobroker/uccsjson.py
+++ b/x2gobroker/uccsjson.py
@@ -46,8 +46,8 @@ class ManagementServer():
"""
self.RemoteDesktopServers = []
self.AdditionalManagementServers = []
- self.URL = url
- self.Name = name
+ self.URL = unicode(url)
+ self.Name = unicode(name)
def set_default(self, ts_name):
"""\
@@ -57,8 +57,10 @@ class ManagementServer():
@type ts_name: C{unicode}
"""
- if isinstance(tsName, str):
- self.DefaultServer = tsName
+ if isinstance(ts_name, str):
+ self.DefaultServer = unicode(ts_name)
+ elif isinstance(domain, unicode):
+ self.DefaultServer = ts_name
else:
raise TypeError("set_default expects a string argument")
@@ -115,7 +117,7 @@ class RDPServer():
self.URL = unicode(host)
self.Name = unicode(name)
self.Protocol = u'freerdp'
- self.DomainRequired = unicode(True)
+ self.DomainRequired = True
self.Username = unicode(username)
self.Password = unicode(password)
@@ -228,6 +230,8 @@ class X2GoServer():
"""
if isinstance(session_type, str):
+ self.SessionType = unicode(session_type)
+ elif isinstance(session_type, unicode):
self.SessionType = session_type
else:
raise TypeError("set_session_type() expects a string or unicode argument")
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
More information about the x2go-commits
mailing list