First of all, you should install a database required in the Soffid IAM installation.
The supported databases are:
- MySQL and MariaDB
- Oracle RDBMS
- Microsoft SqlServer
MySQL and MariaDB setup
In order to configure mysql database you need access to the database administration tool (mysql) with superuser permissions using a TCP/IP connection. If needed, please create a user for the soffid installation. If you don't have such a user, or don't know its password, please access MySQL as root, execute the mysql tool and create the user with grant command. Where ADMIN_USER is the user to be used during the installation process to create the soffid repository database and ADMIN_PASSWORD is the required password.
In addition, in order to be able to manage big files, like process definition or software addons, we have to modify max_allowed_packet parameter on mysql. This parameter is commonly allocated on the /etc/mysql/my.cnf file.
Note: in the case we will obtain the next 'The size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size.' error trying to upload an addon, we may update the default value of this mysql/mariadb parameter. This parameter is commonly allocated on the /etc/mysql/my.cnf file.
If you are installing on a Ubuntu 18.04 server, default character set is set to utf8mb4. Using this character set can cause problems, as many index sizes will exceed maximum key size of 767 bytes. To prevent this problem, change following settings:
Alternatively, if UTF character set is required, write the following settings:
Following this link you will find the steps to setup a two nodes database cluster.
A new database instance should be created. Optionally two tablespaces should be created (SOFFID_DATA and SOFFID_INDEX) to separate soffid tables and indexes.
To create the tablespace is necessary to provide the full path name, its size and MANAGEMENT AUTOALLOCATE option. The autoallocate option is needed because the tables are not sized by database creation scripts. Also, the Oracle Listener must have a TCP/IP port accepting connections.
Microsoft SQLServer setup
You must enable the SQL Server Browser Service at startup and the authentication method have to be set to “SQL Server and Windows Authentication mode”.
To connect Soffid to the SQL server you will need a user with sysadmin role. In addition Soffid requires JDK installed on the server and SOFFID_JAVA_HOME environment variable should be set appropriately.
In addition, you must ensure that 'READ_COMMITTED_SNAPSHOT" parameter is enabled, you can do so with the following command: