XML Parsing Error: prefix not bound to a namespace

Lohr, Donald lohrda at jmu.edu
Thu May 7 12:39:26 UTC 2020


On the found two /pub folders that have a raw metadata file that does 
not have the shibmd namespace declaration:

/opt/shibboleth-idp/edit-webapp/pub/it-federation-dev-metadata.xml
/opt/shibboleth-idp/webapp/pub/it-federation-dev-metadata.xml

<?xml version="1.0" encoding="UTF-8"?>
<EntityDescriptor 
entityID="https://it-federation-dev.jmu.edu/idp/shibboleth">
     <IDPSSODescriptor 
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
         <Extensions>
             <shibmd:Scope regexp="false">jmu.edu</shibmd:Scope>
         </Extensions>

The idp-metadata.xml raw metadata file in the idp.home/metadata folder 
does have the shibmd namespace declaration:

<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
entityID="https://it-federation-dev.jmu.edu/idp/shibboleth">
     <IDPSSODescriptor 
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
         <Extensions>
             <shibmd:Scope regexp="false">jmu.edu</shibmd:Scope>
         </Extensions>

Using curl 
https://it-federation-dev.jmu.edu/idp/pub/it-federation-dev-metadata.xml

...I see what you say, the results do not have the shibmd namespace 
declaration:

<?xml version="1.0" encoding="UTF-8"?>
<EntityDescriptor 
entityID="https://it-federation-dev.jmu.edu/idp/shibboleth">
     <IDPSSODescriptor 
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
         <Extensions>
             <shibmd:Scope regexp="false">jmu.edu</shibmd:Scope>
         </Extensions>

Using curl https://it-federation-dev.jmu.edu/idp/shibboleth

...I see what you say, the results do not have the shibmd namespace 
declaration:

<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
entityID="https://it-federation-dev.jmu.edu/idp/shibboleth">
     <IDPSSODescriptor 
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
         <Extensions>
             <shibmd:Scope regexp="false">jmu.edu</shibmd:Scope>
         </Extensions>


Since this is an old testing Shibboleth 3.x IdP server and a Shibboleth 
3.x SP server, should we just put the IdP metadata from 
https://it-federation-dev.jmu.edu/idp/shibboleth into a file and 
reference it in the SP shibboleth2.xml file as a locally referenced file 
and when we move to Shibboleth v4 servers, we don't do non standard 
config, if that is what this email thread plays out to be what our issue is?


Thanks,
Don


On 5/6/20 10:32 PM, Mak, Steve wrote:
> Not to assume anything, but are you certain that the two linked XML files are the same file on disk?
>
> There's a chance your java container and your idp aren't serving the same file.
>
> My idp serves the idp-metadata.xml at the fqdn/idp/shibboleth location, but returns Tomcat 404 for /idp/pub/idp-metadata.xml
>

-- 
D o n a l d   L o h r
I n f o r m a t i o n   S y s t e m s
J a m e s   M a d i s o n   U n i v e r s i t y
5 4 0 . 5 6 8 . 3 7 3 0



More information about the users mailing list