1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-24 10:14:31 +01:00

Revert "bug fix"

This reverts commit bc1f380084.
This commit is contained in:
Christian Connert 2019-07-09 15:19:01 +02:00
parent f58afbcdd9
commit 04e40884c8

View File

@ -105,7 +105,7 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
self.domain = self.get_param('domain') self.domain = self.get_param('domain')
self.login = os.getenv("AD_LOGIN", self.get_param('login')) self.login = os.getenv("AD_LOGIN", self.get_param('login'))
basedn = 'dc=' + re.sub(r'\.', ',DC=', self.domain) basedn = 'dc=' + re.sub(r'\.', ',DC=', self.domain)
self.binddn = self.login + '@' + self.domain self.binddn = self.get_param('login') + '@' + self.domain
self.bindpassword = os.getenv("PASSWORD", self.get_param('password')) self.bindpassword = os.getenv("PASSWORD", self.get_param('password'))
self.ca = self.get_param('ca', False) self.ca = self.get_param('ca', False)
self.checkcert = self.get_param('checkcert', 'on') self.checkcert = self.get_param('checkcert', 'on')