Automate AdminUI registration.

Document ID : KB000074477
Last Modified Date : 21/03/2018
Show Technical Document Details
Question:
Customer is working on automating the install of the policy server and admin ui. However, to register the admin ui you need to log in with a browser:

"Register the Administrative UI 

The Administrative UI is registered with Policy Server when you log in to it for the first time with the default super user account (siteminder) credentials. This registration process establishes a trusted relationship between the Administrative UI and a Policy Server. Policy Server is managed using the Administrative UI according to the administrative privileges of the user." 


https://docops.ca.com/ca-single-sign-on/12-7/en/installing/install-the-administrative-ui/install-the-administrative-ui-on-windows-stand-alone#InstalltheAdministrativeUIonWindows(stand-alone)-InstalltheAdministrativeUI 

How to work around this?
Answer:
The AdminUI can be registered without human interaction using curl:

curl -k -L -c <COOKIEFILE> --data "query=&username=<USERNAME>&password=<PASSWORD>&address=<POLICYSERVER>" https://<ADMINUISERVER>:8443/iam/siteminder/adminui/?