Auth: MySQL

Authentifizierung: MySQL / MariaDB

Installation

apt install mariadb-server -y
mysql_secure_installation
mysql -u root -p
CREATE DATABASE guacamole_db; 

CREATE USER 'guacamole_user'@'localhost' IDENTIFIED BY 'some_password';

GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'localhost';

FLUSH PRIVILEGES;

quit;
apt install libmysql-java
ln -s /usr/share/java/mysql-connector-java.jar /etc/guacamole/lib/
wget -c  https://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-0.9.14.tar.gz
tar -xzvf guacamole-auth-jdbc-0.9.14.tar.gz
cp guacamole-auth-jdbc-0.9.14/mysql/guacamole-auth-jdbc-mysql-0.9.14.jar /etc/guacamole/extensions
ls guacamole-auth-jdbc-0.9.14/mysql/schema/
001-create-schema.sql  002-create-admin-user.sql  upgrade

cat guacamole-auth-jdbc-0.9.14/mysql/schema/*.sql | mysql -u root -p guacamole_db
# Eingabe des DB Kennwortes
editor /etc/guacamole/guacamole.properties
...

# MySQL properties
mysql-hostname: localhost
mysql-port: 3306
mysql-database: guacamole_db
mysql-username: guacamole_user
mysql-password: ..password..