Programming Guides › Programming Guide for C › Policy Management API › Federation Security Services › SAML 2.0 › Sample Application for Affiliates
Sample Application for Affiliates
The C sample program smpolicyapi has been augmented for the affiliate functionality. To run the affiliate portions, you must:
- Install the SiteMinder Option Pack on the Policy Server
- Define the Affiliate Policy Store objects in smpolicy.smdif and import the objects to the Policy Store
- Install the sample. This creates a sample user directory, which is used by the affiliate sample.
Three options have been added to the smpolicyapi program.
- Do you wish to install Affiliate Sample Api? (Y/N):
Answering Y causes smpolicyapi to:
- Add an affiliate domain
- Add the sample user directory to the affiliate domain
- Add an affiliate to the affiliate domain
- Add users from the sample user directory to the affiliate
- Add an affiliate attribute to the affiliate
- Do you wish to traverse affiliate domain? (Y/N):
Answering Y causes smpolicyapi to:
- Get the affiliate domain and print it.
- Get all user dir OIDs in the sample affiliate domain and print them
- Get all affiliate OIDs in the sample affiliate domain and print them
- Get all affiliates in the sample affiliate domain and print their properties
- Get all users in Affiliate and print them
- Get all attributes in Affiliate and print them
- Do you wish to uninstall Affiliate Sample Api? (Y/N):
Answering Y causes smpolicyapi to delete the affiliate domain.