Skip to content
Snippets Groups Projects
Commit c2180f52 authored by Jakob Berger's avatar Jakob Berger :key2: Committed by jakob
Browse files

Fix default value for silent

parent e4e8e563
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ class LdapHandler:
self.connection = ldap3.Connection(server, auto_bind=True)
self.default_context = default_context
def get_ldap_user(self, search_filter: dict, silent: bool = False, context: str = '__USEDEFAULT__',
def get_ldap_user(self, search_filter: dict, silent: bool = True, context: str = '__USEDEFAULT__',
attributes: list = ['sn', 'gn', 'objectclass']):
if context == '__USEDEFAULT__':
search_context = self.default_context
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment