Create guacamole users

寵の児 提交于 2019-12-07 09:03:52

问题


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.


回答1:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!