Skip to content

Commit

Permalink
[16.0][FIX] users_ldap_populate: black
Browse files Browse the repository at this point in the history
  • Loading branch information
dhx committed Dec 9, 2024
1 parent f3ee581 commit c963307
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion users_ldap_populate/models/users_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ def _get_ldap_entry_dicts(self, conf, user_name="*", timeout=60):
ldap_binddn = conf["ldap_binddn"] or ""
conn.simple_bind_s(ldap_binddn, ldap_password)
results = conn.search_st(
conf["ldap_base"], ldap.SCOPE_SUBTREE, ldap_filter, ['*', '+'], timeout=timeout
conf["ldap_base"],
ldap.SCOPE_SUBTREE,
ldap_filter,
['*', '+'],
timeout=timeout,
)
conn.unbind()
return results
Expand Down

0 comments on commit c963307

Please sign in to comment.