Conditioned attribute
Jan Marek
jmarek at jcu.cz
Mon Jun 17 08:57:14 UTC 2024
Hello,
I would like have an attribute, which is depend on another one,
but I can resolve it only when depended attribute exist.
I have Shibboleth IdP v.4.3.1.
In attribute-resolver.xml I have those snippets:
<AttributeDefinition xsi:type="Simple" id="roomNumber" activationConditionRef="hasPager">
<InputDataConnector ref="PgIDM" attributeNames="roomNumber"/>
</AttributeDefinition>
<DataConnector id="PgIDM" xsi:type="RelationalDatabase" activationConditionRef="hasPager">
<BeanManagedConnection>shibboleth.IDMStorageService</BeanManagedConnection>
<InputAttributeDefinition ref="pager" />
<QueryTemplate>
<![CDATA[
SELECT mistnost FROM orgstr.pracovni_mista WHERE osobni_cislo = '${pager[0]}';
]]>
</QueryTemplate>
<Column columnName="mistnost" attributeID="roomNumber"/>
</DataConnector>
I have another file, named activation-conditions.xml, I have this
bean:
<bean id="hasPager" class="net.shibboleth.idp.profile.logic.SimpleAttributePredicate">
<property name="attributeValueMap">
<map>
<entry key="resolutionContext.pager">
<list>
<value>*</value>
</list>
</entry>
</map>
</property>
</bean>
But in idp-process.log I've got a messages:
WARN [net.shibboleth.idp.profile.logic.AbstractAttributePredicate:105] - No AttributeContext located for evaluation
DEBUG [net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin:250] - Resolver plugin 'PgIDM': activation criteria not met, nothing to do
Please, can you help me, how I have to set this criteria?
Thanks a lot in advance.
Sincerely
Jan Marek
--
Ing. Jan Marek
University of South Bohemia
Academic Computer Centre
Phone: +420389032080
http://www.gnu.org/philosophy/no-word-attachments.cs.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20240617/08a62de4/attachment.sig>
More information about the users
mailing list