JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for JISC-SHIBBOLETH Archives


JISC-SHIBBOLETH Archives

JISC-SHIBBOLETH Archives


JISC-SHIBBOLETH@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

JISC-SHIBBOLETH Home

JISC-SHIBBOLETH Home

JISC-SHIBBOLETH  January 2010

JISC-SHIBBOLETH January 2010

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Upgrading to Shib2.x IdP

From:

Andy Swiffin <[log in to unmask]>

Reply-To:

Discussion list for Shibboleth developments <[log in to unmask]>

Date:

Mon, 11 Jan 2010 11:55:32 +0000

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (94 lines) , PGP.sig (94 lines)

>>> On 11/01/2010 at 11:03, in message
<[log in to unmask]>, "M.Slowe"
<[log in to unmask]> wrote:
> Morning all,
> 
> I've just been reading over the process of upgrading our service offering 
> from Old-and-busted Shib1.3 IdP to a New-Hotness Shib2.x and couldn't quite see 
> the point of the cross-over period where you have your old IdP configured to 
> answer queries on the Shib2 endpoints.
> 
> Having read 
> http://www.ukfederation.org.uk/content/Documents/RollingIdPUpgrade and liking 
> the sound of option (b):
> 
> This conserves the entityID but has this disadvantage: until the metadata 
> has propagated to a given SP, that SP will not be able to communicate with 
> the new IdP.
> }}}
> 
> What I don't understand is why, in the overview of the Edina migration, they 
> went to the trouble of configuring the old IdP to listen on the Shib2 
> endpoints for a while. Could someone enlighten me?


I think Edinburgh did it this way because they don't have apache at the front end?  Rod will be able to comment

From my own experience of upgrading before christmas you really want to be able to listen for SPs who are coming in from the old metadata and the new, this is because it took some SPs a week from the metadata change to start going to the 2.1 IdP.

I would like to propose an alternative approach which I used which you can do if you have apache at the front (thanks to Adrian Barker who first suggested it).   We have two IdPs, an in service one and a backup, these are named internally IdP1 and IdP2,  the DNS is set to point idp.dundee.ac.uk at either of them and they both have identical configuration (entityID etc).

IdP1 was left unchanged as a 1.3 IdP,  IdP2 was upgraded with new JAVA, new Tomcat and 2.1 IdP was installed on it.   For initial testing a new entityID was set on it and it was verified as fully functional and then the entity ID was set to the same as the one on IdP1.

Then,  an additional proxypass was added to the apache on IdP1 to send the shibboleth 2 endpoints (/idp) over to the tomcat on IdP2.   The metadata was then changed.  All SPs would continue to arrive at IdP1's apache but those who had picked up the new metadata would then get shunted off to the shib2 IdP on IdP2 while those with the old metadata would arrive with /shibboleth-idp endpoints and would continue to be serviced by the shib 1 IdP on IdP1.

This worked beautifully and for the transition we were able to handle the quick people (BMJ started using shib 2 45 minutes after the change over!) and the rather more tardy who took a week to change.    The only hitch were a couple of rather broken sites who seemed to be using an SP that had metadata in two places, these would authenticate at the shib 1 IdP and then go off to the shib2 IdP to ask for attributes or vice versa :-(    That aint going to work......

Eventually when everyone was happily coming through with shib 2 endpoints and shib 1 traffic had stopped the DNS was switched over and yes, some 3 weeks plus  after the DNS change there is still one SP who is coming to the wrong host.....   There's no point telling them, I've  upgraded IdP1 to shib 2 now and am about to switch the DNS back again.

I was asked if I'd write this up for the fed site and was in the process of doing so when a family bereavement put a halt to everything, but I'm back in harness now and will get it sorted asap.

I am told that its possible to have all of the above on one machine, i.e. with two Tomcats listening on different ports, but this was getting too far from a completely "bog standard" configuration for me.   The advantage of the above is that all ports are totally standard and so are all endpoints.


> One more question -- the eduPersonTargettedId (the magic salted unique value) -- 
> does the new IdP support the same EntityID+Salt algorithm? We're not 
> currently storing the values that come out of there and are relying on 
> EntityID+Username+Salt not changing (which, at the moment, they won't).
> 

Yes.   In fact entityID is not a factor,  ePTID is just generated from the attribute+salt, so you will generate the same value even with a different entityID, of course SPs won't recognize you as the same with a different entityID.   The following will give you everything you need to cover all bases:

    <resolver:DataConnector xsi:type="ComputedId" xmlns="urn:mace:shibboleth:2.0:resolver:dc"
                            id="computedID"
                            generatedAttributeID="computedID"
                            sourceAttributeID="anldapdirectoryattribute"
                            salt="blah blah blah">
        <resolver:Dependency ref="myLDAP" />
    </resolver:DataConnector> 

    <resolver:AttributeDefinition id="eduPersonTargetedID.old" xsi:type="Scoped" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
        scope="dundee.ac.uk" sourceAttributeID="computedID">
        <resolver:Dependency ref="computedID" />

        <resolver:AttributeEncoder xsi:type="SAML1ScopedString" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
            name="urn:mace:dir:attribute-def:eduPersonTargetedID" />

        <resolver:AttributeEncoder xsi:type="SAML2ScopedString" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
            	name="urn:mace:dir:attribute-def:eduPersonTargetedID" 	friendlyName="eduPersonTargetedID" />
    </resolver:AttributeDefinition>


    <resolver:AttributeDefinition id="eduPersonTargetedID" xsi:type="SAML2NameID" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
        nameIdFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
        sourceAttributeID="computedID">
        <resolver:Dependency ref="computedID" />

        <resolver:AttributeEncoder xsi:type="SAML1XMLObject" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
                name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" />
    
        <resolver:AttributeEncoder xsi:type="SAML2XMLObject" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
                name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" friendlyName="eduPersonTargetedID" />
    </resolver:AttributeDefinition>

(don't forget to release both eptid and eptid.old in the arp filter)

HTH
Andy Swiffin
Dundee



The University of Dundee is a registered Scottish charity, No: SC015096

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

November 2023
February 2023
January 2023
November 2022
October 2022
September 2022
June 2022
January 2022
November 2021
October 2021
September 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
June 2019
May 2019
March 2019
February 2019
January 2019
November 2018
July 2018
June 2018
May 2018
April 2018
March 2018
January 2018
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
March 2017
February 2017
January 2017
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
March 2016
February 2016
January 2016
December 2015
November 2015
September 2015
August 2015
June 2015
April 2015
March 2015
February 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager