Fixed a couple of typo bugs on RDP Transports

This commit is contained in:
Adolfo Gómez 2013-10-01 20:47:16 +00:00
parent 808dfa5aa0
commit dbe7e5187b
2 changed files with 11 additions and 0 deletions

View File

@ -163,6 +163,7 @@ class RDPTransport(Transport):
else:
domain = ''
username = proc[0]
if self._fixedName is not '':
username = self._fixedName
if self._fixedPassword is not '':
@ -171,6 +172,11 @@ class RDPTransport(Transport):
domain = self._fixedDomain;
if self._useEmptyCreds is True:
username, password, domain = '','',''
if domain != '':
if domain.find('.') == -1: # Dotter domain form
username = username + '@' + domain
domain = ''
width, height = CommonPrefs.getWidthHeight(prefs)
depth = CommonPrefs.getDepth(prefs)

View File

@ -161,6 +161,11 @@ class TSRDPTransport(Transport):
if self._useEmptyCreds is True:
username, password, domain = '','',''
if domain != '':
if domain.find('.') == -1: # Dotter domain form
username = username + '@' + domain
domain = ''
width, height = CommonPrefs.getWidthHeight(prefs)
depth = CommonPrefs.getDepth(prefs)
cache = Cache('pam')