diff options
Diffstat (limited to 'Shibboleth-IdP/v4/attribute-resolver.xml')
-rw-r--r-- | Shibboleth-IdP/v4/attribute-resolver.xml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Shibboleth-IdP/v4/attribute-resolver.xml b/Shibboleth-IdP/v4/attribute-resolver.xml index 8edf512..6a9c9be 100644 --- a/Shibboleth-IdP/v4/attribute-resolver.xml +++ b/Shibboleth-IdP/v4/attribute-resolver.xml @@ -405,11 +405,18 @@ <InputDataConnector ref="myLDAP" attributeNames="ExterntStudentUID" /> <Script> <![CDATA[ - if (ExterntStudentUID) { - value=ExterntStudentUID.getValues().get(0); - schacPersonalUniqueCode.getValues().add("urn:schac:personalUniqueCode:int:esi:ladok.se:externtstudentuid-" + value); + logger = Java.type("org.slf4j.LoggerFactory").getLogger("net.shibboleth.idp.attribute.resolver.eppnbuilder"); + try { + if (ExterntStudentUID) { + value=ExterntStudentUID.getValues().get(0); + if (value != null) { + schacPersonalUniqueCode.getValues().add("urn:schac:personalUniqueCode:int:esi:ladok.se:externtstudentuid-" + value); + } + } + } catch (err) { + logger.info("Error: " + err); } - ]]> + ]]> </Script> <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:schacPersonalUniqueCode" encodeType="false" /> <AttributeEncoder xsi:type="SAML2String" name="urn:oid:1.3.6.1.4.1.25178.1.2.14" friendlyName="schacPersonalUniqueCode" encodeType="false" /> |