Skip to content

Commit 1867a21

Browse files
Change LDAP_Server class to LDAPServer to match naming conventions
1 parent 10dfaf8 commit 1867a21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

comanage_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def get_datalist(data, listname):
255255
return data[listname] if data else []
256256

257257

258-
class LDAP_Server:
258+
class LDAPServer:
259259
""" Wrapper class for LDAP searches. """
260260
server: Server = None
261261
connection: Connection = None
@@ -301,7 +301,7 @@ def do_ldap_fallback_search(search_ou, search_filter, attrs, ldap_config: config
301301
authtok_file = ldap_config.get(section, LDAP_CONFIG_KEYS.LDAP_AuthTok_File)
302302
authtok = get_ldap_authtok(authtok_file)
303303

304-
searcher = LDAP_Server(ldap_server=server_url, ldap_user=search_user, ldap_authtok=authtok)
304+
searcher = LDAPServer(ldap_server=server_url, ldap_user=search_user, ldap_authtok=authtok)
305305
response = searcher.search(search_ou, search_base, search_filter, attrs)
306306

307307
#If we get a response from one of the servers, we don't need to check the rest

0 commit comments

Comments
 (0)