mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-24 21:34:41 +03:00
Merge remote-tracking branch 'origin/v2.1'
This commit is contained in:
commit
897682eae4
@ -62,10 +62,10 @@ class WinDomainOsManager(WindowsOsManager):
|
||||
self._account = ""
|
||||
self._password = ""
|
||||
|
||||
# self._ou = self._ou.replace(' ', '')
|
||||
# self._ou = self._ou.replace(' ', ''), do not remove spaces
|
||||
if self._domain != '' and self._ou != '':
|
||||
lpath = 'dc=' + ',dc='.join(self._domain.split('.')).lower()
|
||||
if self._ou.replace(' ', '').lower().find(lpath) == -1:
|
||||
lpath = 'dc=' + ',dc='.join((s.lower() for s in self._domain.split('.')))
|
||||
if self._ou.lower().find(lpath) == -1:
|
||||
self._ou += ',' + lpath
|
||||
|
||||
def __getLdapError(self, e):
|
||||
|
@ -106,6 +106,9 @@ class BaseSpiceTransport(Transport):
|
||||
|
||||
logger.debug('Connection data: {}'.format(con))
|
||||
|
||||
if con is None:
|
||||
return False
|
||||
|
||||
port, secure_port = con['port'], con['secure_port']
|
||||
port = -1 if port is None else port
|
||||
secure_port = -1 if secure_port is None else secure_port
|
||||
|
Loading…
Reference in New Issue
Block a user