[LON-CAPA-admin] {Disarmed} Re: Single Sign On

Neubauer, Paul pneubauer at bsu.edu
Thu Mar 25 12:21:41 EDT 2021


Hi Stuart,

Thanks for the informative reply.  As far as I can tell, we've done all of what we're supposed to do. My naïve undeerstanding of our problem runs like this:

  1.  We know that I (for example) can log in using our old IdP
  2.  If I log in using the old IdP, we get an entry in /home/httpd/perl/logs/lonnet.log like: "SSO authorized user pneubauer"
  3.  We know that I cannot log in using our new IdP
  4.  When I try to login using the new IdP no log entry occurs
  5.  We *believe* that the old and new IdPs send the same attributes and assertions.
  6.  However, either Apache or lon-capa is not treating the attributes passed from our IdPs the same

What we really need now is a way to see what attributes and assertions are received. In particular, it looks like we need a way to see what values we are getting for eppn. I grepped for "eppn" in /home/httpd/lib/perl/Apache without success. I know that I am ignorant of how Apache or lon-capa handles the sso data, but shouldn't there be some reference somewhere to what attributes it is looking for?

Thanks,
Paul



________________________________
From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Raeburn, Stuart via LON-CAPA-admin <lon-capa-admin at mail.lon-capa.org>
Sent: Thursday, March 25, 2021 10:25 AM
To: lon-capa-admin at mail.lon-capa.org <lon-capa-admin at mail.lon-capa.org>
Subject: Re: [LON-CAPA-admin] Single Sign On

Hello Paul,

My recommendation would be to take a look at the ApplicationDefaults section in /etc/shibboleth2.xml.

The SP entityID needs to match what is expected by the IdP.
The REMOTE_USER should be set to the attribute to be used to identify the authenticated user, e.g.,

    <ApplicationDefaults id="default" policyId="default"
        entityID="https://federate.bsu.edu/shibboleth"
        REMOTE_USER="eppn persistent-id targeted-id"

From the LON-CAPA Domain Coordination manual (section 4.2):

"REMOTEUSER is used to pass on the primary identifier of the authenticated user.  It should be set to match an attribute or alias defined in the attribute-map.xml file. LON-CAPA uses this value ($r->user in the mod_perl environment) as the username of the user."

As noted here: mail.lon-capa.org/pipermail/lon-capa-admin/2012-July/002609.html

"for Shibboleth SSO to work with LON-CAPA, lonshibauth.pm and lonshibacc.pm need to have been installed in  /home/httpd/lib/perl/Apache and also /home/httpd/html/adm/sso needs to have been installed."

In LON-CAPA's apache config file: /etc/httpd/conf/loncapa_apache.conf (on CentOS/RHEL/Scientific Linux/Oracle Linux) you'll find:

<IfModule mod_shib>
    PerlAuthenHandler Apache::lonshibauth
    PerlSetVar lonOtherAuthen yes
    PerlSetVar lonOtherAuthenType Shibboleth
</IfModule>

and

<Location /adm/sso>
  <IfModule mod_shib>
    AuthType shibboleth
    ShibUseEnvironment On
    ShibRequestSetting requireSession 1
    ShibRequestSetting redirectToSSL 443
    require valid-user
    PerlAuthzHandler       Apache::lonshibacc
    PerlAuthzHandler       Apache::lonacc
  </IfModule>
  <IfModule !mod_shib>
    PerlTypeHandler        Apache::lonnoshib
  </IfModule>
</Location>

The lonshibauth.pm module will redirect a user requiring Single Sign On via Shibboleth to a URL -- /adm/sso -- on the server which is configured to use that service.

The lonshibacc.pm module is an authorization handler used to remove trailing @internet domain from the Shibboleth-authenticated username (e.g., @bsu.edu).

After removing @bsu.edu from $r->user, the handler will return DECLINED so that
lonacc.pm can be invoked as the next authorization handler.

The subroutine in /home/httpd/lib/perl/Apache/lonacc.pm used for LON-CAPA session management for SSO-authenticated users (both Shibboleth and CAS) is: sso_login().  The call to that routine occurs early in the lonacc.pm handler() routine, immediately after retrieving a LON-CAPA session handle for an unexpired LON-CAPA session, based on a session cookie (if there is one) included in the browser's request.

The sso_login() routine in lonacc.pm does not write much to the logs.  If $r->user was set (i.e., the user was authenticated by Shibboleth), and the value passes a regexp check that it could be a valid username, then LON-CAPA will check whether that user exists in the domain.  If so, this will be logged in /home/httpd/perl/logs/lonnet.log:

SSO authorized user <username>

You could add some more calls to &Apache::lonnet::logthis() to log other things to /home/httpd/perl/logs/lonnet.log to try to figure out what is going.
After making changes do:
service httpd reload

Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: Neubauer, Paul <pneubauer at bsu.edu>
Sent: Thursday, March 25, 2021 8:44 AM
To: lon-capa-admin at mail.lon-capa.org; Raeburn, Stuart
Subject: Re: Single Sign On

Hi Stuart (or anyone else who has any ideas for me),

We've continued trying to track this down, without notable success.

What routine in lon-capa handles the attributes sent by the IdP and decides whether it matches a valid user? Is there any log setting to capture the attributes sent by our IdP? So far, we have not found any settings in /etc/shibboleth/shibd.logger that capture the attributes received into either /var/log/shibboleth/shibd.log or /var/log/shibboleth/transaction.log. Do you know of any such setting? Alternatively, is there any lon-capa log that might be informative with regard to who logs in and when or how?

Thanks,
Paul


________________________________
From: Neubauer, Paul <pneubauer at bsu.edu>
Sent: Wednesday, March 24, 2021 9:38 AM
To: lon-capa-admin at mail.lon-capa.org <lon-capa-admin at mail.lon-capa.org>; Raeburn, Stuart <raeburn at msu.edu>; Neubauer, Paul <pneubauer at bsu.edu>
Subject: Re: Single Sign On

Hi Stuart and all,

As Stuart commented on Sunday, "the standard advice is to check the MetadataProvider element(s) in your shibboleth2.xml file." Our guy who is spearheading the replacement of our IdP (Identity Provider) came up with the following change to our MetadataProvider element:

  <MetadataProvider type="XML" uri="https://federate.bsu.edu/FederationMetadata/2007-06/FederationMetadata.xml<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Ffederate.bsu.edu%2FFederationMetadata%2F2007-06%2FFederationMetadata.xml__%3B!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtLz6CjS0w%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792795531%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=XMDgDujie%2BjzQZ5PIjJ63%2BEhn1Lu6WRQLwSeJM1mi8Q%3D&reserved=0>"
       backingFilePath="metadata/federate.bsu.edu.xml" reloadInterval="7200"/>

I have to admit that I don't understand the point of the differences. My ignorance may be curable, but as of now we only have about a week to make it work, so educating me about the ins and outs of SSO is not our highest priority right now. We've been "experimenting" every morning at 6am. At this time, using that new version of shibboleth2.xml, I do successfully get redirected to our login page and I can tell I have succeeded at the IdP end of the operation because I get the push to my phone for our two-factor authentication. So far, so good.

Unfortunately (you knew this was coming, right?) the next thing I see is:

-------------------------------------------------
Forbidden
You don't have permission to access /adm/sso on this server.
-------------------------------------------------

Some googling reveals that I had asked exactly this question on this list in December, 2017: https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.lon-capa.org%2Fpipermail%2Flon-capa-admin%2F2017-December%2F003310.html&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792795531%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=w2vp7UBc7jylTFRlcNkoZfVuK7Hea%2BU1UQWtuU9Caic%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fmail.lon-capa.org*2Fpipermail*2Flon-capa-admin*2F2017-December*2F003310.html%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396339240*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DyA0DUUedb5cKoNazDBH4LNogE8tU3GIfmLLJwndx5yE*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJSU!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtIwuuSo3g%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792795531%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=IWs5VOhTLSbauCi7UbPLhN0XfeYQNcVkH0Q9%2Bm8KdbI%3D&reserved=0>

I got no answer on the list at that time and I don't recall even asking the question, let alone how we solved it, or even who solved it.

I naïvely suspected that the new IdP is providing different data to lon-capa, but I am assured that the "assertions and attributes haven't changed." I don't know how to capture whatever our IdP is actually providing to lon-capa, so I don't know how to compare the new IdP data to the old. Is that logged somewhere? What routine handles the authentication within lon-capa?

Does anyone have a clue for the clueless (me)?

Thanks,
Paul



From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Neubauer, Paul via LON-CAPA-admin <lon-capa-admin at mail.lon-capa.org>
Sent: Sunday, March 21, 2021 6:01 PM
To: lon-capa-admin at mail.lon-capa.org <lon-capa-admin at mail.lon-capa.org>; Raeburn, Stuart <raeburn at msu.edu>
Subject: Re: [LON-CAPA-admin] Single Sign On

Hi Stuart,

Sorry. Yes it is odd. I did a screenshot instead of a text copy and then retyped the message from that. That's the cause of the "lonn-capa01" instead of "lon-capa01" (assuming you meant the double-n in "lonn" as what is odd).  (I also have to apologize for the HTML mail instead of plain text I think I've corrected both now.)

"lon-capa01.aws.bsu.edu" is the canonical name of the system (as we have it hosted on Amazon Web Services) and "lon-capa.bsu.edu" is an alternate name. So far, that has not been a problem.

Anyway, the file shibboleth2.xml.old is the (copy of the) original (which we have now reverted to) and shibboleth2.xml.new is the version of shibboleth2.xml that was in use when we got the error.

A diff of the two files:

diff shibboleth2.xml.old shibboleth2.xml.new
51c51
<             <SSO  entityID="https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fshibboleth.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792805520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=iDrOShTidmMoO4Ri7P%2FKIp6EWlShLHVW%2F1zJMAqMcQk%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fshibboleth.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396349225*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DDed1RdH6pxP6Ls05ALy*2BIltEWoMEHvnSKj3*2Fnkvh1t0*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtJMzrEUJw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792805520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=ORrQxslPm23%2BIoIOcHSigQBYHm3LYA4IW4S7%2Fdu%2BG4w%3D&reserved=0>">SAML2 SAML1</SSO>
---
>             <SSO  entityID="https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffederate.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792805520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=jhmRV51aBeRlKZUayjqkOvrwrpw2k3%2FXBVxPQ0egFcc%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Ffederate.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396349225*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DtGupHkVFNYdwehnfQaU62awnv8ghjQyQCSPORA*2Fhmjc*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUl!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtL3SdFlBw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792805520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=m7R2AO0A2eOkfsUNt2QBZTKR46ey3bWr4LVdgyqEATQ%3D&reserved=0>">SAML2 SAML1</SSO>
82c82
<                             file="metadata/shibboleth.bsu.edu.xml"/>
---
>                             file="metadata/federate.bsu.edu.xml"/>

shows that the only changes were from shibboleth.bsu.edu to federate.bsu.edu and the result of the grep that I included in the original message showed that I changed all instances of the string 'shibboleth.bsu.edu'  so how did it get that the identity provider ought to be 'https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fshibboleth.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792805520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=iDrOShTidmMoO4Ri7P%2FKIp6EWlShLHVW%2F1zJMAqMcQk%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fshibboleth.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396349225*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DDed1RdH6pxP6Ls05ALy*2BIltEWoMEHvnSKj3*2Fnkvh1t0*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtJMzrEUJw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792805520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=ORrQxslPm23%2BIoIOcHSigQBYHm3LYA4IW4S7%2Fdu%2BG4w%3D&reserved=0>'? There were no instances of that string anywhere in /etc (let alone /etc/shibboleth).. If the message had said that it was unable to locate identity provider (https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffederate.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=emNuAXTxd2wSseGzHJEbDKtj5EwZOOL2p1CYe0d3%2BH0%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Ffederate.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396349225*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DtGupHkVFNYdwehnfQaU62awnv8ghjQyQCSPORA*2Fhmjc*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUl!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtL3SdFlBw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=x3nne5lkX0%2FvmgUjhPfxHB9SgAVVyR0BDiyGCUnezCk%3D&reserved=0>) I would be a lot less puzzled.

Thanks,
Paul


From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Raeburn, Stuart via LON-CAPA-admin <lon-capa-admin at mail.lon-capa.org>
Sent: Sunday, March 21, 2021 4:55 PM
To: lon-capa-admin at mail.lon-capa.org <lon-capa-admin at mail.lon-capa.org>
Subject: Re: [LON-CAPA-admin] Single Sign On

Hello Paul,

This line is odd:
"Identity provider lookup failed at (https:lonn-capa01.aws.bsu.edu/adm/sso)"

I would expect that to be lookup failed at:
https://lon-capa01.aws.bsu.edu/adm/sso<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Flon-capa01.aws.bsu.edu%2Fadm%2Fsso__%3B!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtJtExTeIw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=s8MUF5CHl1J6XjuTTjF6XELPFoo55zpRnkffQ0ZZ23o%3D&reserved=0>

IP address: 34.204.137.158 points at lon-capa.bsu.edu
and lon-capa01.aws.bsu.edu has IP address: 34.204.137.158

If you see: "Unable to locate metadata for identity provider" the standard advice is to check the MetadataProvider element(s) in your shibboleth2.xml file.

Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Neubauer, Paul via LON-CAPA-admin <lon-capa-admin at mail.lon-capa.org>
Sent: Sunday, March 21, 2021 2:30 PM
To: list about administration and system updating(lon-capa-admin at mail.lon-capa.org)
Subject: [LON-CAPA-admin] Single Sign On

Hi all,

We (Ball State University) are in the process of updating our identity provider. We are rolling in the changes so individual systems are being moved from using "shibboleth.bsu.edu" to using "federate.bsu.edu". It is lon-capa's turn.

I found all the files that referenced "shibboleth.bsu.edu" and copied them to a different location:

cp /etc/shibboleth/attribute-map.xml /root/sso/attribute-map.xml.old
cp /etc/shibboleth/shibboleth2.xml /root/sso/shibboleth2.xml.old
cp /etc/shibboleth/metadata/shibboleth.bsu.edu.xml /root/sso/shibboleth.bsu.edu.xml

I then made copies of the two .old files as .new and edited them to replace "shibboleth.bsu.edu" with "federate.bsu.edu"
I also got the new metadata (with wget  https://federate.bsu.edu/FederationMetadata/2007-06/FederationMetadata.xml<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Ffederate.bsu.edu%2FFederationMetadata%2F2007-06%2FFederationMetadata.xml__%3B!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtLz6CjS0w%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=TbcpX48KjJc%2B7a%2BW5Hsel7YdHExgBYdCJyW9CvAPJsg%3D&reserved=0>) and saved it as federate.bsu.edu.xml

This morning I stopped shibd, copied the .new files to /etc/shibboleth/ and federate.bsu.edu.xml to /etc/shibboleth/metadata/

I checked for "shibboleth.bsu.edu":
[root at lon-capa01 ~]#  grep -H -r -i 'shibboleth.bsu.edu' /etc
[root at lon-capa01 ~]#
which shows that I had eliminated all references to it.

I restarted shibd and when I tried to log in, I got:

---------------------------------
Unknown or unusable identity provider
The identity provider supplying your login credentials is not authorized for use with this service or does not support the necessary capabilities.
To report this problem, please contact the site administrator at security at bsu.edu.
Please include the following error message in any email:
Identity provider lookup failed at (https:lon-capa01.aws.bsu.edu/adm/sso)
EntityID: https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fshibboleth.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=4N%2FGeG9j%2BRJTc7xG9gNy5gQW3x%2Fh05Q51awDAqtg37w%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fshibboleth.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396349225*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DDed1RdH6pxP6Ls05ALy*2BIltEWoMEHvnSKj3*2Fnkvh1t0*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtJMzrEUJw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=Q%2FJky4UPWgF1QDi0xDhwgHK8rllwQXDgph3UYkMUCn4%3D&reserved=0>
opensaml::saml2md::MetadataException: Unable to locate metadata for identity provider (https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fshibboleth.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792815525%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=4N%2FGeG9j%2BRJTc7xG9gNy5gQW3x%2Fh05Q51awDAqtg37w%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fshibboleth.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396349225*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DDed1RdH6pxP6Ls05ALy*2BIltEWoMEHvnSKj3*2Fnkvh1t0*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtJMzrEUJw%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=2zozufWMjffWLJTOFeG44wXT7uoojaJoyMGRdVTKggc%3D&reserved=0>)
---------------------------------

For some reason it was still looking for the EntityID https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fshibboleth.bsu.edu%2Fsso&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=9fDvvogl2wuLxsWfF1oDsI0bywRq%2FRgTjCL8CB7Z9vQ%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fshibboleth.bsu.edu*2Fsso%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396359220*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DQn0*2F*2BkrY6uEO5Pwq6*2BzApY1PSf3Y*2F15S00bfM*2FSHbts*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtILcV_u_g%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=76j1CxFnbiHGaDlD1MIzcUiCAXGcxhd9uAC6tcg2KNg%3D&reserved=0>
I did a system reboot but got the same thing.

I reverted to the old files and we are working, but that will only last a couple of weeks before our cert expires for our old identity provider site and it goes down.

I am totally lost. is there somewhere else with shibboleth configuration data?

Thanks,
Paul

_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.lon-capa.org%2Fmailman%2Flistinfo%2Flon-capa-admin&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=gdgWmUYtpM9cox%2BdCsRmQYbPoD%2FLeGxnzE627N601aU%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fmail.lon-capa.org*2Fmailman*2Flistinfo*2Flon-capa-admin%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396359220*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DmpktbZjY0DGma4HNz51ndCTwqalkjOkGmvJ79S1IJj8*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtIBL3FgoA%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=dhPDmvRyjq08ih3M174qflFDMCbMszqFO4ykF3AwoUw%3D&reserved=0>
_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.lon-capa.org%2Fmailman%2Flistinfo%2Flon-capa-admin&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=gdgWmUYtpM9cox%2BdCsRmQYbPoD%2FLeGxnzE627N601aU%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fnam12.safelinks.protection.outlook.com%2F%3Furl%3Dhttp*3A*2F*2Fmail.lon-capa.org*2Fmailman*2Flistinfo*2Flon-capa-admin%26amp%3Bdata%3D04*7C01*7Cpneubauer*40bsu.edu*7C23e56acc816e48334a4208d8eeca2c4c*7C6fff909f07dc40da9e30fd7549c0f494*7C0*7C0*7C637521899396359220*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26amp%3Bsdata%3DmpktbZjY0DGma4HNz51ndCTwqalkjOkGmvJ79S1IJj8*3D%26amp%3Breserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJQ!!HXCxUKc!mwxaXXgMT_dJr9y4bdf14pDe3QVy-O4vf4ganh6meYGLrRNCXMI7vtIBL3FgoA%24&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792825515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=dhPDmvRyjq08ih3M174qflFDMCbMszqFO4ykF3AwoUw%3D&reserved=0>
_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.lon-capa.org%2Fmailman%2Flistinfo%2Flon-capa-admin&data=04%7C01%7Cpneubauer%40bsu.edu%7C2d02f9e7f9c34b95811e08d8ef99f359%7C6fff909f07dc40da9e30fd7549c0f494%7C0%7C1%7C637522791792835512%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=zqBHhWFF436dAl%2BndKLNn41Sq3AnPrcYVL9bDS8plN8%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-admin/attachments/20210325/5446e898/attachment-0001.html>


More information about the LON-CAPA-admin mailing list