Skip to content

Commit

Permalink
Merge pull request #3531 from brianhlin/SOFTWARE-5766.missing-comanag…
Browse files Browse the repository at this point in the history
…e-contacts

Use supported LDAP search_scope (SOFTWARE-5766)
  • Loading branch information
brianhlin authored Dec 18, 2023
2 parents a9b908e + 086bf65 commit 5f88596
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webapp/ldap_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def get_cilogon_ldap_id_map(ldap_url, ldap_user, ldap_pass):
conn = ldap3.Connection(server, ldap_user, ldap_pass, receive_timeout=CILOGON_LDAP_TIMEOUT)
if not conn.bind():
return None # connection failure
conn.search(_cilogon_basedn, _ACTIVE_COPERSON_FILTER, search_scope='one', attributes=['*'])
conn.search(_cilogon_basedn,
_ACTIVE_COPERSON_FILTER,
search_scope=ldap3.LEVEL,
attributes=['*'])
result_data = [ (e.entry_dn, e.entry_attributes_as_dict)
for e in conn.entries ]
conn.unbind()
Expand Down

0 comments on commit 5f88596

Please sign in to comment.