staic connectors

Andrew Morgan morgan at orst.edu
Tue Jun 13 13:46:28 EDT 2017


You probably need to prefix it with "dc:" to get the right XML namespace, 
like this:

<resolver:DataConnector id="staticAttributes" xsi:type="dc:Static">
     <dc:Attribute id="accountID">
        <Value>phila26432</Value>
     </dc:Attribute>
</resolver:DataConnector>


 	Andy


On Tue, 13 Jun 2017, Cheltenham, Chris wrote:

>
>
> Hello,
>
>
>
> We are trying to release a dummy attribute that is the same value every
> time.
>
> It is not in LDAP and it is required by the stupid application.
>
> I will push the same value for everyone all the time.
>
>
>
> I am using static connectors but I cannot see why this fails.
>
> Does anyone see why in attribute-resolver.xml
>
>
>
>
>
> Shib 3.2.1
>
>
>
> <resolver:AttributeDefinition xsi:type="ad:Simple" id="iReadyaccountID"
> sourceAttributeID="iReadyaccountID">
>
>        <resolver:Dependency ref="staticAttributes" />
>
>        <resolver:AttributeEncoder xsi:type="enc:SAML2String"
> name="accountID" friendlyName="accountID" encodeType="false" />
>
> </resolver:AttributeDefinition>
>
>
>
>
>
> <resolver:DataConnector id="staticAttributes" xsi:type="dc:Static">
>
>     <Attribute id="accountID">
>
>        <Value>phila26432</Value>
>
>     </Attribute>
>
> </resolver:DataConnector>
>
>
>
> The error I get is with the the data connector's attributeID.
>
>
>
> [/opt/shibboleth-idp/conf/attribute-resolver.xml] is invalid; nested
> exception is org.xml.sax.SAXParseException;
>
> lineNumber: 190; columnNumber: 32; cvc-complex-type.2.4.a: Invalid content
> was found starting with element 'Attribute'.
>
> One of '{"urn:mace:shibboleth:2.0:resolver":Dependency,
> "urn:mace:shibboleth:2.0:resolver":FailoverDataConnector,
>
> "urn:mace:shibboleth:2.0:resolver:dc":Attribute}' is
> expected.</u></p><p><b>description</b> <u>
>
> The server encountered an internal error that prevented it from fulfilling
> this request.
>
>
>
> ===========================
>
> Thank You;
>
> Chris Cheltenham
> Technology Services
> The School District of Philadelphia
>
> Work # 215-400-5025
> Cell # 215-301-6571
>
>


More information about the users mailing list