From: Sander A. <sa....@fz...> - 2018-05-02 06:55:52
|
Hi Krzysztof, I want to extract the organisation of users from eduPersonScopedAffiliation (role@organisation) in input translation rpofile, if this attribute is provided by remote IdP. At the moment my definition is: condition: attr contains 'urn:oid:1.3.6.1.4.1.5923.1.1.1.9' action: mapAttribute expression: attr['urn:oid:1.3.6.1.4.1.5923.1.1.1.9'].split("@")[1] It works fine if the IdP releases the correct attribute. But I got the first user with a malformed attribute. Is it possible to extend the condition with a check if the attribute contains a @? Something like attr contains 'urn:oid:1.3.6.1.4.1.5923.1.1.1.9' action: mapAttribute && attr['urn:oid:1.3.6.1.4.1.5923.1.1.1.9'].contains('@') ? Best regards, Sander -- Federated Systems and Data Juelich Supercomputing Centre phone: +49 2461 61 8847 fax: +49 2461 61 6656 email: sa....@fz... ----------------------------------------------------------------------- ----------------------------------------------------------------------- Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ----------------------------------------------------------------------- ----------------------------------------------------------------------- |