1
0
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:
Adolfo Gómez García 2017-03-29 11:00:32 +02:00
commit 897682eae4
2 changed files with 7 additions and 4 deletions

View File

@ -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):

View File

@ -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