Content Switch ADFS 2.0 + ShareFile StorageZones with Citrix NetScaler

Once you have both ADFS 2.0 and ShareFile StorageZone Controller installed on separate servers, your StorageZone Controller data is already content switched (how to set this up), then content switching your ADFS traffic on the same content switching vServer is quite simple.

First, create traditional Load Balancing rules for your ADFS 2.0 server within your Citrix NetScaler.  Create the service, server and vServer.  Note, in the screenshots below you will notice that I created my vServer as a non “Directly Addressable” vServer (thus 0 IP).


From here, configure a content switching policy for ADFS.  The easiest way of doing this is to add a new policy by using your existing ShareFile Data content switching policy as a template.


When you create your ADFS content policy you will want to edit the second half of the expression.  Remove || HTTP.REQ.URL.CONTAINS(“/sp”) and replace (HTTP.REQ.URL.CONTAINS(“/cifs/”) with (HTTP.REQ.URL.CTAINS(“/adfs/”).  In the end your ADFS content switching policy will look similar to the following screenshot below.


Finally, add the new policy to your existing ShareFile content switching vServer.  Make sure that the ADFS content switching policy is at the top of the priority list.