Commit 8ffea11c authored by Markus Widmer's avatar Markus Widmer

Merge branch 'develop' into 'master'

Develop

See merge request crust/customer!12
parents f82b30ec e6db3d7c
......@@ -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)
......@@ -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