CAT

Installing and Configuring CAT

Packages required prior to installing CAT

The CAT generates installers for numerous operating systems. Consequently, many console tools need to be installed for all the profile generators to work correctly. The prerequisites are:

Configuring the required prerequisite packages

Here are some extra configuration hints for these packages:

Installing CAT

  1. unpack the distribution 1A. if you use a clone of the Git repo instead, remember to “git submodule –init –recursive” at least for the GEANTlink repo in devices/ms/Files/ (there are more submodules referenced in core/ which you may already have on your system, you should double-check)
  2. create the config/config-master.php file from the supplied template config-master-template.php
  3. create the config/config-diagnostics.php and/or config/config-confassistant.php files as needed in the same manner
  4. create the devices/Devices.php file from the supplied template
  5. on a MySQL/MariaDB server, create the databases as per the schema definition in schema/schema.sql
  6. make sure that you can connect to that database
  7. make sure that the var/installer_cache, var/silverbullet and var/tmp directories exists and are writeable to the Apache web server user
  8. make sure that simpleSAMLphp is installed
  9. make sure that simpleSAMLphp openid module is enabled and google (or any IdP of your choice) is uncommented in authsources
  10. create a symlink web/external/jquery/jquery.js pointing to the most current version of jQuery. When installing CAT from composer, the most recent version will be available in vendor/components/jquery/jquery.min.js (the version shipped inside the distribution may not be the most current one!)
  11. using your browser, check if the main interface is running (web subdirectory)
  12. if so, go to the master management page to have your system prerequisites checked (web/admin/112365365321.php)

Configuring CAT

After creating config-*.php as above, adapt it to your needs and the realities on your server. In particular, pay attention to the following:

The device configuration file is in devices/Devices.php. There is a template file devices-template.php - you can simply copy it to have a Devices.php. Unless you want to disable specific device modules, or have custom ways to digitally sign installers, it is not necessary to change this file.

After logging in with simpleSAMLphp, you should enable protection of the superadmin page. This can be done by editing the config-master “SUPERADMINS” array - remove everything and instead add only the unique identifiers that are supposed to have access to that page.

Similarly, you may want to make yourself the federation administrator for at least one federation. You can do so by adding that privilege to your unique identifier with the following SQL statement in the USER database (in this example, for “LU” -> Luxembourg):

INSERT INTO user_options (user_id, option_name, option_value) VALUES("<your unique ID>","user:fedadmin","LU");

Additional configuration for Managed IdP

Customisation / Look and Feel

CAT ships with a default look-and-feel for the eduroam consortium. You can adapt most of its appearance to your local needs by changing colours and images. The sources for the images are scattered around the source tree. Here is a list of LOGOs to edit:

The colours are all configured in the web/resources/css/ directory.