Univention Bugzilla – Bug 56301
Wrong Commands in Documentation for mariadb backend
Last modified: 2023-08-03 11:23:05 CEST
The Documentation for mariadb[1] as backend uses wrong startparameters for univention-app configure 1: The after installation step says, you have to specify a MariaDB database with following command: univention-app configure keycloak \ --set kc/db/url "jdbc:mariadb://${database_hostname}:3306/keycloak" \ --set kc/db/password "database-password" This is wrong and have to be univention-app configure keycloak \ --set "kc/db/url=jdbc:mariadb://${database_hostname}:3306/keycloak" "kc/db/password=database-password" 2: the initial installation step says: To specify a MariaDB database during installation, run univention-app install \ --set kc/db/url="jdbc:mariadb://${database_hostname}:3306/keycloak" \ --set kc/db/password="database-password" This is wrong and needs to be univention-app install --set "kc/db/url=jdbc:mariadb://${database_hostname}:3306/keycloak" "kc/db/password=database-password" keycloak [1]: https://docs.software-univention.de/keycloak-app/latest/configuration.html#mariadb-as-database
Additionally: At least in our setup we needed to add the following variables in our "--set" startup parameter to get keycloak with mariadb as backend running on a already running keycloak installation: "kc/db/ping/datatype=VARBINARY(255)" "kc/db/driver=org.mariadb.jdbc.Driver" So our command was: univention-app configure keycloak \ --set "kc/db/url=jdbc:mariadb://${database_hostname}:3306/keycloak" "kc/db/password=database-password" "kc/db/ping/datatype=VARBINARY(255)" "kc/db/driver=org.mariadb.jdbc.Driver" Otherwise, keycloak was complaining about not existing database drivers