Mapped AttributeDefinition question

Mohamed Lrhazi lrhazi at cua.edu
Thu Aug 26 23:23:44 UTC 2021


Hello all,

Why is this returning "false" when am expecting "true" :


<AttributeDefinition id="isPatron" xsi:type="Mapped">
<InputDataConnector ref="oracledbcf_csprd_wrlc" attributeNames=
"cx_patron_type"/>
<DefaultValue>false</DefaultValue>
<ValueMap>
<ReturnValue>true</ReturnValue>
<SourceValue>.+</SourceValue>
</ValueMap>
</AttributeDefinition>
<DataConnector xsi:type="RelationalDatabase" id="oracledbcf_csprd_wrlc">
<BeanManagedConnection>OracleDataSourceCSPRD</BeanManagedConnection>
<InputAttributeDefinition ref="employeeID" />
<QueryTemplate>
<![CDATA[
select cx_patron_type
from sysadm.ps_cx_alma_saml
where emplid='$employeeID.get(0)'
]]>
</QueryTemplate>
<Column columnName="cx_patron_type" attributeID="cx_patron_type" />
</DataConnector>

In the log I see this:

- DEBUG [net.shibboleth.idp.attribute.resolver.AbstractDataConnector:229] -
Data Connector 'oracledbcf_csprd_wrlc': Attribute 'CX_PATRON_TYPE': Values
'[StringAttributeValue{value=custaf}]'
...
- DEBUG
[net.shibboleth.idp.attribute.resolver.ad.mapped.impl.MappedAttributeDefinition:212]
- Attribute Definition isPatron: Default value of
StringAttributeValue{value=false} added as the value for this attribute
- DEBUG
[net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition:139] -
Attribute Definition 'isPatron': produced an attribute with the following
values [StringAttributeValue{value=false}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210826/6bc04450/attachment.htm>


More information about the users mailing list