Configuration Guides › Federation Security Services Guide › Deploying Federation with the FSS Sample Application › Deploy the Sample Application on Two Systems
Deploy the Sample Application on Two Systems
You can install the sample application on two separate systems, one system acting as the Identity Provider and the other system acting as the Service Provider.
To deploy the sample application on each system, run the SetupFederationSample.pl script from a command line.
The script accomplishes the following:
- Reads the configuration information from FederationSample.conf file.
- Creates policy objects in the policy store to establish the SAML 2.0 single sign-on and single logout profiles.
- Copies web pages to the web server document root
- Adds a private key and the corresponding certificate data to smkeydatabase.
- Modifies the hosts file of the system to map a loopback IP address, 127.0.0.1 to www.sp.demo and www.idp.demo
After the SetupFederationSample.pl script is run once, running it again deletes the sample policy objects created by the previous execution of the script.
To execute the sample application on two systems
- Complete all the core SOA Security Manager and federation prerequisites on both systems.
- Modify the host file of each system so it recognizes the other system with which it is communicating.
- On the IdP system, www.idp.demo, modify the host file of this system to include the IP address of the SP system.
- On the SP system, www.sp.demo, modify the host file of this system to include the IP address of the IdP system.
On Windows, the host file is typically located in WINDOWS\system32\drivers\etc\hosts.
On Solaris/UNIX, the host file is commonly located in /etc/hosts.
- (Optional) If you are using a web browser on a system that does not have the correct host mappings for www.idp.demo and www.sp.demo, add these mappings to the hosts file of the system.
- Define your environment by configuring the FederationSample.conf file for each system.
- Run the SetupFederationSample.pl script as follows:
- On the IdP system, enter the following command:
perl SetupFederationSample.pl -admin siteminder_administrator
-password administrator_password -idp FSS
- On the SP system, enter the following command:
perl SetupFederationSample.pl -admin siteminder_administrator
-password administrator_password -sp FSS
You can review the list of script command options.
- Restart both Policy Servers.
- Test single sign-on and single logout.