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:
parent
8ac5cc068d
commit
2bf6a92de3
@ -62,11 +62,11 @@ class WinDomainOsManager(WindowsOsManager):
|
||||
self._account = ""
|
||||
self._password = ""
|
||||
|
||||
self._ou = self._ou.replace(' ', '')
|
||||
if self._domain != '' and self._ou != '':
|
||||
lpath = 'dc=' + ',dc='.join(self._domain.split('.'))
|
||||
if self._ou.lower().find(lpath) == -1:
|
||||
self._ou += ',' + lpath
|
||||
# self._ou = self._ou.replace(' ', '')
|
||||
# if self._domain != '' and self._ou != '':
|
||||
# lpath = 'dc=' + ',dc='.join(self._domain.split('.'))
|
||||
# if self._ou.lower().find(lpath) == -1:
|
||||
# self._ou += ',' + lpath
|
||||
|
||||
def __getLdapError(self, e):
|
||||
logger.debug('Ldap Error: {0} {1}'.format(e, e.message))
|
||||
|
Loading…
Reference in New Issue
Block a user