Configuring the server for single sign-on after installation
After you install the Remote Control server, you can configure it to support SAML 2.0 authentication.
Before you begin
About this task
URI: urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressTo configure the Remote Control server, complete the following steps:
Procedure
-
Create an sso.xml file in the following directory:
- Windows™ operating system
- C:\Program Files\BigFix\TRC\server\wlp\usr\servers\trcserver or
C:\Program Files (x86)\BigFix\TRC\server\wlp\usr\servers\trcserver if available
- Linux™ operating system
- /opt/BigFix/TRC/server/wlp/usr/servers/trcserver
-
Add the following content to the sso.xml file:
<server> <featureManager> }} <feature>samlWeb-2.0</feature>}} </featureManager> }} <samlWebSso20 id="defaultSP" keyStoreRef="samlKeyStore" httpsRequired="true" signatureMethodAlgorithm="SHA256" spHostAndPort="https://[hostname:port]"/> <keyStore id="samlKeyStore" location="[samlKey.file]" password="[yourkeystorepassword]" type="[filetype]"/> </server>- [hostname:port]
- Defines the host name and SSL port of your remote control server. For example, https://example.com:443/.
- [samlKey.file]
- Defines the path to your keystore file. For example, c:\trc\samlKey.p12.
- [yourkeystorepassword]
- Defines the password for your keystore file. For example, password="mypassword".
- [filetype]
- Defines the file type of your keystore file. For a .p12 file, set type to PKCS12. For a .jks file, set type to JKS.
You can add more configuration parameters. For more information, see SAML Web SSO 2.0 Authentication (samlWebSso20)
In a default configuration, the following values are used:- AssertionConsumerService URL
- https://<hostname>:<sslport>/ibm/saml20/defaultSP/acs.
- Service Provider (SP) metadata URL
- https://<hostname>:<sslport>/ibm/saml20/defaultSP/samlmetadata
Where <hostname> is the host name of your Remote Control server and <sslport> is the SSL Port value. For example, 443.
-
Edit the application.xml file in the following directory:
- Windows™ operating system
- C:\Program Files\BigFix\TRC\server\wlp\usr\servers\trcserver or
C:\Program Files (x86)\BigFix\TRC\server\wlp\usr\servers\trcserver if available
- Linux™ operating system
- /opt/BigFix/TRC/server/wlp/usr/servers/trcserver
Add the following <application-bnd> statement to the file.<server> <application context-root="/trc" type="ear" id="trcserver" location="TRCAPP.ear" name="trcserver" autoStart="true" > <application-bnd> <security-role name="any-authenticated"> <special-subject type="ALL_AUTHENTICATED_USERS" /> </security-role> </application-bnd> </application> <application context-root="/" type="ear" id="trcredir" location="REDIR.ear" name="trcredir" autoStart="true" /> <applicationMonitor updateTrigger="disabled" dropinsEnabled="false" /> </server> -
Get the SAML metadata XML file from the Identity Provider (IdP).
How this file is obtained varies, depending on the IdP. Rename the file to idpMetadata.xml and copy it to the following directory on the server:
- Windows™ operating system
- C:\Program
Files\BigFix\TRC\server\wlp\usr\servers\trcserver\resources\security or
C:\Program Files (x86)\BigFix\TRC\server\wlp\usr\servers\trcserver\resources\security if available
- Linux™ operating system
- /opt/BigFix/TRC/server/wlp/usr/servers/trcserver/resources/security
-
Edit the common.properties file and set sso.enabled
to True.
The file is in the following directory:
- Windows™ systems
- [installdir]\wlp\usr\servers\trcserver\apps\TRCAPP.ear\trc.war\WEB-INF\classes
Where [installdir] is the directory in which the Remote Control server is installed.
- Linux™ systems
- [installdir]/wlp/usr/servers/trcserver/apps/TRCAPP.ear/trc.war/WEB-INF/classes
Where [installdir] is the directory in which the Remote Control server is installed.
- Restart the Remote Control server.
-
After the server restarts, type the following URL into your browser to download the metadata
for this service provider (SP) which is the BigFix® Remote Control
Server:
https://<hostname>:<sslport>/ibm/saml20/defaultSP/samlmetadata, where <hostname> is the host name of your remote control server and <sslport> is the SSL port of the server. Provide the metadata to the SAML identity provider to establish federation between this SP and Identity Provider (IdP).