mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
fixed where to get fixed credentials
This commit is contained in:
parent
1ea5987975
commit
d5e71be73c
@ -1976,7 +1976,7 @@ class DelayedTask(models.Model):
|
||||
#objects = LockingManager()
|
||||
|
||||
def __unicode__(self):
|
||||
return u"Run Queue task {0} owned by {3},inserted at {1} and with {2} seconds delay".format(self.type, self.insert_date, self.execution_delay, self.owner_server)
|
||||
return u"Run Queue task {0} owned by {3},inserted at {1} and with {2} seconds delay {3}".format(self.type, self.insert_date, self.execution_delay, self.execution_time)
|
||||
|
||||
|
||||
class Network(models.Model):
|
||||
|
@ -156,6 +156,9 @@ class RDPTransport(Transport):
|
||||
# We use helper to keep this clean
|
||||
username = user.getUsernameForAuth()
|
||||
prefs = user.prefs('rdp')
|
||||
|
||||
if self._fixedName is not '':
|
||||
username = self._fixedName
|
||||
|
||||
proc = username.split('@')
|
||||
if len(proc) > 1:
|
||||
@ -164,8 +167,6 @@ class RDPTransport(Transport):
|
||||
domain = ''
|
||||
username = proc[0]
|
||||
|
||||
if self._fixedName is not '':
|
||||
username = self._fixedName
|
||||
if self._fixedPassword is not '':
|
||||
password = self._fixedPassword
|
||||
if self._fixedDomain is not '':
|
||||
|
@ -145,6 +145,9 @@ class TSRDPTransport(Transport):
|
||||
# We use helper to keep this clean
|
||||
username = user.getUsernameForAuth()
|
||||
prefs = user.prefs('rdp')
|
||||
|
||||
if self._fixedName is not '':
|
||||
username = self._fixedName
|
||||
|
||||
proc = username.split('@')
|
||||
if len(proc) > 1:
|
||||
@ -152,8 +155,6 @@ class TSRDPTransport(Transport):
|
||||
else:
|
||||
domain = ''
|
||||
username = proc[0]
|
||||
if self._fixedName is not '':
|
||||
username = self._fixedName
|
||||
if self._fixedPassword is not '':
|
||||
password = self._fixedPassword
|
||||
if self._fixedDomain is not '':
|
||||
|
Loading…
Reference in New Issue
Block a user