Thank you very much, it works! The correct script is: <resolver:AttributeDefinition id="cljattr" xsi:type="Script" language="Clojure" xmlns="urn:mace:shibboleth:2.0:resolver:ad"> <resolver:AttributeEncoder xsi:type="SAML1String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" name="urn:mace:dir:attribute-def:cljattr" /> <resolver:AttributeEncoder xsi:type="SAML2String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" name="urn:mace:unimore.it:attribute-def:cljattr" friendlyName="cljattr" /> <Script> <![CDATA[ (import org.slf4j.LoggerFactory) (import edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute) (def logger (. org.slf4j.LoggerFactory getLogger "edu.internet2.middleware.shibboleth.resolver.Script.cljattr")) (def cljattr (BasicAttribute. "cljattr")) (.add (.getValues cljattr) "CLOJURE") (.info logger (str "cljattr: " (.getValues cljattr))) ]]> </Script> </resolver:AttributeDefinition>
Thank you for the quick answer! Francesco -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en