[prev in list] [next in list] [prev in thread] [next in thread] 

List:       shibboleth-users
Subject:    RE: Removing a value from an attribute in a script
From:       "Wessel, Keith" <kwessel () illinois ! edu>
Date:       2017-05-25 19:38:29
Message-ID: 69589f01776944e89ea8ad02d0c161da () uex135 ! ad ! uillinois ! edu
[Download RAW message or body]

Thanks, gentlemen. I've reworked my logic, and I'm getting what I need now.

Keith


-----Original Message-----
From: users [mailto:users-bounces@shibboleth.net] On Behalf Of Rod Widdowson
Sent: Thursday, May 25, 2017 6:49 AM
To: 'Shib Users' <users@shibboleth.net>
Subject: RE: Removing a value from an attribute in a script

> So, for academic purposes, how would I remove them in this case? 

You cannot remove values from an IdPAttribute, for all the good reasons that Scott \
mentioned it is super risky and in fact the list of attribute values is immutable.  \
OTOH you can set the values (which I think is a bad idea for the same reasons).  You \
need to allocate another list, set the values into the list and then do a .setValues \
on the IdPAttribute.

But if you are in the same script why not just keep the list around and then just set \
it into the Attribute at the end?

/Rod

-- 
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net
-- 
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic