Attribute not encoded because no SAML2AttributeEncoder was attached to it
Peter Schober
peter.schober at univie.ac.at
Fri Jun 28 09:42:15 EDT 2013
* Saurabh Tyagi <saurabh.tyagi at thepsi.com> [2013-06-28 15:09]:
> In Logs I am getting
>
> No attributes remained after encoding and filtering by value, no
> attribute statement built.
>
> Can anyone please tell me what's wrong am I doing?
Yes, but I already did.
> 18:29:49.939 - DEBUG
> [edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAM
> L2AttributeAuthority:226] - Attribute mail was not encoded because no
> SAML2AttributeEncoder was attached to it.
>
> 18:29:49.939 - DEBUG
> [edu.internet2.middleware.shibboleth.common.attribute.provider.ShibbolethSAM
> L2AttributeAuthority:226] - Attribute cn was not encoded because no
> SAML2AttributeEncoder was attached to it.
Like the message says, you're missing encoders in your attribute
definitions for mail and cn and hence no attributes are being sent.
Like said before, those attributes are pre-defined in the distributed
file attribute-resolver.xml and these definitions are working and
fully sufficient. Just restore those.
Or copy them from the version control system:
http://svn.shibboleth.net/view/java-shib-idp2/tags/2.4.0/src/installer/resources/conf-tmpl/attribute-resolver.xml?content-type=text/plain&view=co
If that's too easy still, read the documentation and learn how to
define your own attribute definitions:
https://wiki.shibboleth.net/confluence/display/SHIB2/IdPAddAttribute
-peter
More information about the users
mailing list