I have just setup guacamole 0.9.9 with a MySQL user database and LDAP authentication and it all works flawlessly so far.
However, I want to be able to create new users and connections in the MySQL database from outside of guacamole. Is there a way to use the API to perform these tasks? All I'm reading about the API is creating a new web application which embeds remote connections.
Thank you.
You can use the following MySQL commands in your code to create new users.
SET @salt = UNHEX(SHA2(UUID(), 256));
INSERT INTO guacamole_user (username, password_salt, password_hash, password_date) VALUES ('testuser', @salt, UNHEX(SHA2(CONCAT('testpass', HEX(@salt)), 256)), NOW());
来源:https://stackoverflow.com/questions/40597935/create-guacamole-users