diff --git a/ifxlookup/plugins/ldap.py b/ifxlookup/plugins/ldap.py index 327bdb2..976ebd5 100644 --- a/ifxlookup/plugins/ldap.py +++ b/ifxlookup/plugins/ldap.py @@ -33,7 +33,7 @@ class ServiceDelegate(ServiceBase) : scope = 'BASE' if self._config['scope'].upper() in ['ONE','LEVEL'] : scope = 'LEVEL' - self.connection.search(self._config['search_base'], '(' + self._config['filter_string'] + subject + ')', search_scope=scope,attributes=ldap3.ALL_ATTRIBUTES) + self.connection.search(self._config['search_base'], '(' + self._config['filter_string'] + subject.lower() + ')', search_scope=scope,attributes=ldap3.ALL_ATTRIBUTES) except Exception as exception : self.error.append('Problem with LDAP search: ' + exception) return