From bc1f3800842c6399a6fb1c0167386b662431ce80 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Thu, 23 May 2019 13:50:21 +0800 Subject: [PATCH] bug fix --- ldapcherry/backend/backendAD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py index d53eb64..bb84bf3 100644 --- a/ldapcherry/backend/backendAD.py +++ b/ldapcherry/backend/backendAD.py @@ -105,7 +105,7 @@ class Backend(ldapcherry.backend.backendLdap.Backend): self.domain = self.get_param('domain') self.login = os.getenv("AD_LOGIN", self.get_param('login')) basedn = 'dc=' + re.sub(r'\.', ',DC=', self.domain) - self.binddn = self.get_param('login') + '@' + self.domain + self.binddn = self.login + '@' + self.domain self.bindpassword = os.getenv("PASSWORD", self.get_param('password')) self.ca = self.get_param('ca', False) self.checkcert = self.get_param('checkcert', 'on')