diff --git a/component/saml/univention-saml/univention-saml.py b/component/saml/univention-saml/univention-saml.py index 046e2bf..f9f2468 100644 --- a/component/saml/univention-saml/univention-saml.py +++ b/component/saml/univention-saml/univention-saml.py @@ -103,7 +103,7 @@ def handler(dn, new, old): if new.get('simplesamlAttributes'): f.write(" 'simplesaml.attributes' => %s,\n" % new.get('simplesamlAttributes')[0]) if new.get('simplesamlLDAPattributes'): - f.write(" 'attributes' => '%s',\n" % ','.join(new.get('simplesamlLDAPattributes'))) + f.write(" 'attributes' => array('%s'),\n" % "','".join(new.get('simplesamlLDAPattributes'))) if new.get('serviceproviderdescription'): f.write(" 'description' => '%s',\n" % new.get('serviceproviderdescription')[0]) if new.get('serviceProviderOrganizationName'):