1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-24 21:34:41 +03:00

Removev "space removal" from OU for WinDomain OS Manager, and removed de

"add" of the dc...dc.
This commit is contained in:
Adolfo Gómez García 2016-09-12 18:47:35 +02:00
parent 8ac5cc068d
commit 2bf6a92de3

View File

@ -62,11 +62,11 @@ class WinDomainOsManager(WindowsOsManager):
self._account = "" self._account = ""
self._password = "" self._password = ""
self._ou = self._ou.replace(' ', '') # self._ou = self._ou.replace(' ', '')
if self._domain != '' and self._ou != '': # if self._domain != '' and self._ou != '':
lpath = 'dc=' + ',dc='.join(self._domain.split('.')) # lpath = 'dc=' + ',dc='.join(self._domain.split('.'))
if self._ou.lower().find(lpath) == -1: # if self._ou.lower().find(lpath) == -1:
self._ou += ',' + lpath # self._ou += ',' + lpath
def __getLdapError(self, e): def __getLdapError(self, e):
logger.debug('Ldap Error: {0} {1}'.format(e, e.message)) logger.debug('Ldap Error: {0} {1}'.format(e, e.message))