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

Update backendAD.py

This commit is contained in:
Kevin Li 2019-05-21 15:26:49 +08:00 committed by GitHub
parent 9ad7d64762
commit 7cfa183ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ class Backend(ldapcherry.backend.backendLdap.Backend):
self.starttls = self.get_param('starttls', 'off') self.starttls = self.get_param('starttls', 'off')
self.uri = self.get_param('uri') self.uri = self.get_param('uri')
self.timeout = self.get_param('timeout', 1) self.timeout = self.get_param('timeout', 1)
self.userdn = 'CN=Users,' + basedn self.userdn = 'OU=Users,OU=' + self.domain.split(".")[0] + "," + basedn
self.groupdn = self.userdn self.groupdn = self.userdn
self.builtin = 'CN=Builtin,' + basedn self.builtin = 'CN=Builtin,' + basedn
self.user_filter_tmpl = '(sAMAccountName=%(username)s)' self.user_filter_tmpl = '(sAMAccountName=%(username)s)'