Shibboleth IDP4 - AttributeEncoder - friendlyName
prasanna cg
prasannacgin at yahoo.in
Mon Aug 17 19:16:01 UTC 2020
Thanks Scott. I tried that and it doesn't seem to work
<AttributeDefinition xsi:type="Simple" id="firstname">
<InputDataConnector ref="ActiveDirectory" attributeNames="givenName" />
<AttributeEncoder xsi:type="SAML2String" friendlyName="" name="firstname" encodeType="false" />
</AttributeDefinition>
And I get the below error on restart
2020-08-17 19:14:10,398 - - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:182] - Service 'shibboleth.AttributeResolverService': Initial load failed
net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 74 in XML document from file [/opt/shibboleth-idp/conf/attribute-resolver.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 74; columnNumber: 96; cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'string'.
at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:377)
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 74 in XML document from file [/opt/shibboleth-idp/conf/attribute-resolver.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 74; columnNumber: 96; cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'string'.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:400)
Caused by: org.xml.sax.SAXParseException: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'string'.
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
> On Aug 17, 2020, at 2:24 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:
>
> You could try (no promises) setting friendlyName="" in the encoder. I don't know that it will work, but under the covers, the trigger for "don't set it" is definitely looking for a blank value.
>
> -- Scott
>
>
> --
> For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20200817/b47e7b65/attachment.htm>
More information about the users
mailing list