Commit e6db3d7c authored by David Hübner's avatar David Hübner

convert ldap_entry dict to list

parent 3b64eb96
......@@ -38,6 +38,6 @@ def provide_request_body(ldap_entry):
required_attributes = ['didmosLoginName', 'mail', 'uid']
for attribute in required_attributes:
if LDAPEntryHelper.has_key(ldap_entry, attribute):
json_body[attribute] = LDAPEntryHelper.get_value(ldap_entry, attribute)
json_body[attribute] = LDAPEntryHelper.get_value([(x, ldap_entry[x]) for x in ldap_entry], attribute)
return json.dumps(json_body)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment