Need help in shibboleth configuration
bhupendra.a.singh at accenture.com
bhupendra.a.singh at accenture.com
Tue Jun 6 06:09:53 EDT 2017
Hi Shibboleth team,
After configuring the shibboleth and ADFS environment I am getting below error. Please help in fixing the issue.
2017-06-06 03:11:27 DEBUG OpenSAML.MetadataProvider.XML : using local resource (/etc/shibboleth/prod-FederationMetadata.xml), will monitor for changes
2017-06-06 03:11:27 DEBUG OpenSAML.MetadataProvider.XML : loading configuration from external resource...
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 3468, message: grammar not found for namespace 'http://docs.oasis-open.org/wsfed/federation/200706'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 3468, message: attribute 'ServiceDisplayName' is not declared for element 'RoleDescriptor'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 5827, message: no declaration found for element 'fed:ClaimTypesRequested'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 26564, message: no declaration found for element 'fed:TargetScopes'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 27680, message: no declaration found for element 'fed:ApplicationServiceEndpoint'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 27942, message: no declaration found for element 'fed:PassiveRequestorEndpoint'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 28138, message: element 'fed:ClaimTypesRequested' is not allowed for content model '(Signature?,Extensions?,KeyDescriptor*,Organization?,ContactPerson*)'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 28515, message: grammar not found for namespace 'http://docs.oasis-open.org/wsfed/federation/200706'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 28515, message: attribute 'ServiceDisplayName' is not declared for element 'RoleDescriptor'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 30481, message: no declaration found for element 'fed:TokenTypesOffered'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 30648, message: no declaration found for element 'fed:ClaimTypesOffered'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 51399, message: no declaration found for element 'fed:SecurityTokenServiceEndpoint'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 52111, message: no declaration found for element 'fed:PassiveRequestorEndpoint'
2017-06-06 03:11:27 ERROR XMLTooling.ParserPool : error on line 1, column 52307, message: element 'fed:TokenTypesOffered' is not allowed for content model '(Signature?,Extensions?,KeyDescriptor*,Organization?,ContactPerson*)'
Thanks & Regards,
Bhupendra
-----Original Message-----
From: Singh, Bhupendra A.
Sent: Tuesday, May 30, 2017 9:20 PM
To: 'Shib Users' <users at shibboleth.net>
Subject: RE: Need help in shibboleth configuration
Hi All,
I have to set the attribute value ENTID in the header request. Please help, how can I set this value.
Thanks & Regards,
Bhupendra
-----Original Message-----
From: Singh, Bhupendra A.
Sent: Friday, May 26, 2017 10:21 PM
To: users at shibboleth.net
Subject: RE: Need help in shibboleth configuration
Thanks Peter for your reply.
1. As you mentioned below to see the shibd.log so we have found the exact issue.
2. The decoder "ScopedAttributeDecoder" is wrong for whatever this kind of attribute is. Of course Scott already told you so but you ignored it and decided to copy/paste inapplicable config examples from other, unrelated attributes instead. "Surprisingly" it doesn't work.
- I have removed the decoder from the attribute-map.xml
3.
SAML Response:
<Attribute
Name="https://federation-sts.accenture.com/schemas/claims/1/enterpriseid"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<AttributeValue>john </AttributeValue>
</Attribute>
Attribute-map.xml:
<Attribute
name="https://federation-sts-stage.accenture.com/schemas/claims/1/enterpriseid"
nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" id="ENTID" />
After all the changes I am still getting the same error.
Thanks & Regards,
Bhupendra
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Peter Schober
Sent: Thursday, May 25, 2017 4:59 PM
To: users at shibboleth.net
Subject: Re: Need help in shibboleth configuration
* bhupendra.a.singh at accenture.com <bhupendra.a.singh at accenture.com> [2017-05-24 05:18]:
> Please find below the log details.
That's exactly what I said to look out for:
* Peter Schober <peter.schober at univie.ac.at> [2017-05-23 22:57]:
> The SP's shibd.log will tell you what attributes have been ignored
> ("skipping unmapped") due to to not being mapped correctly, or because
> they don't match some policy rules
And your log confirms just that:
> 2017-05-23 13:12:03 INFO Shibboleth.AttributeExtractor.XML [7]:
> skipping unmapped SAML 2.0 Attribute with Name:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__federation_schema
> s_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8Ir
> wNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mm
> ZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=BTMZnMOj6FAViB2rSY_Jy81jk5tDb-ffcJw6X
> kphTJs&e= , Format:urn:oasis:names:tc:SAML:2.0:attrname-format:basic
This is what you said you have in your SAML Assertion:
* An attribute with the name
"https://urldefense.proofpoint.com/v2/url?u=https-3A__federation_schemas_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mmZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=BTMZnMOj6FAViB2rSY_Jy81jk5tDb-ffcJw6XkphTJs&e= "
* and with a NameFormat of
"urn:oasis:names:tc:SAML:2.0:attrname-format:basic".
That is what you put into your attribute-map.xml:
* An attribute with the name
"https://urldefense.proofpoint.com/v2/url?u=https-3A__federation-2Dsts-2Dstage_schemas_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mmZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=uybtOd251VBYrCYhYzNe8LK-0UWYXIxH0TXVhXsm848&e= "
* and with a NameFormat of
"urn:oasis:names:tc:SAML:2.0:attrname-format:basic".
* and with a nonsensical "ScopedAttributeDecoder" decoder.
So what are your mistakes:
1. Clearly the string
"https://urldefense.proofpoint.com/v2/url?u=https-3A__federation_schemas_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mmZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=BTMZnMOj6FAViB2rSY_Jy81jk5tDb-ffcJw6XkphTJs&e= " is *not* equal to "https://urldefense.proofpoint.com/v2/url?u=https-3A__federation-2Dsts-2Dstage_schemas_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mmZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=uybtOd251VBYrCYhYzNe8LK-0UWYXIxH0TXVhXsm848&e= ".
You recieved an attribute with the name of the former, but created a rule with the name of the latter. -
2. The decoder "ScopedAttributeDecoder" is wrong for whatever this kind of attribute is. Of course Scott already told you so but you ignored it and decided to copy/paste inapplicable config examples from other, unrelated attributes instead. "Surprisingly" it doesn't work. -
How hard is it to copy and paste a single string into a config file?
Anyway, here's what you should have put into your attribute-map.xml according to some of the zensored examples you posted to this list:
<Attribute nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
name="https://urldefense.proofpoint.com/v2/url?u=https-3A__federation_schemas_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mmZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=BTMZnMOj6FAViB2rSY_Jy81jk5tDb-ffcJw6XkphTJs&e= ," id="ENTID">
Personally I suspect this is the result of you "censoring" examples for the purpose of posting to this list (i.e., I don't believe the attrbute actually is called "https://urldefense.proofpoint.com/v2/url?u=https-3A__federation_schemas_claims_1_enterpriseid&d=DwICAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=iyop1o4k3D-LmubkaV19fs58JOYX7uCPiqL6a-rQTeM&m=v4fv9Fa0JB6mmZhpT7Al9HDiiY-czGtTvnAXyatH6hE&s=BTMZnMOj6FAViB2rSY_Jy81jk5tDb-ffcJw6XkphTJs&e= ") plus you're confusing yourself about attribute names vs. host names in DNS.
-peter
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________
www.accenture.com
More information about the users
mailing list