创建鳄梨酱用户 [英] Create guacamole users
本文介绍了创建鳄梨酱用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚使用MySQL用户数据库和LDAP身份验证设置了鳄梨酱0.9.9,到目前为止,它们都可以完美地工作.
I have just setup guacamole 0.9.9 with a MySQL user database and LDAP authentication and it all works flawlessly so far.
但是,我希望能够从鳄梨调味酱之外的MySQL数据库中创建新用户和连接.有没有一种使用API来执行这些任务的方法?我所读到的有关API的所有内容都是创建一个新的Web应用程序,该应用程序嵌入了远程连接.
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.
谢谢.
推荐答案
您可以在代码中使用以下MySQL命令来创建新用户.
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());
这篇关于创建鳄梨酱用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文