Skip to content

Commit

Permalink
ldap_connection.ual_ldap_query: Bug fix - missing parentheses (iss #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Jan 29, 2020
1 parent 5c95c44 commit f582605
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/ldap_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ def ual_ldap_query(org_code):
'''

ldap_query = '(& (employeePrimaryDept={}) (| '.format(org_code)+\
'({}) '.format(ual_grouper_base('ual-faculty')+\
'({}) '.format(ual_grouper_base('ual-staff')+\
'({}) '.format(ual_grouper_base('ual-students')+\
'({}) ) )'.format(ual_grouper_base('ual-dcc')
'({}) '.format(ual_grouper_base('ual-faculty'))+\
'({}) '.format(ual_grouper_base('ual-staff'))+\
'({}) '.format(ual_grouper_base('ual-students'))+\
'({}) ) )'.format(ual_grouper_base('ual-dcc'))

return ldap_query


def ldap_search(ldapconnection, ldap_query):
'''
Function that queries a define LDAP connection and retrieve members
Expand Down

0 comments on commit f582605

Please sign in to comment.