forked from shaba/openuds
Fixed a couple of typo bugs on RDP Transports
This commit is contained in:
parent
808dfa5aa0
commit
dbe7e5187b
@ -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 '':
|
||||
@ -172,6 +173,11 @@ class RDPTransport(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)
|
||||
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user