2017-11-20 5:58 GMT-05:00 Falcy, Cedrik <cedrik.fa...@bpi.fr>:

> Hello,
> I have a problematic, I have 300 connection posts to enter guacamole. Is
> it possible to import into guacamole all the computer names of the active
> directory or LDAP? If not, do you have a way to get all these posts back
> faster and not one by one?
>

As Xavier suggests, you can manipulate the database directly, insert the
rows into the DB with the desired values.  His script does the user sync
for LDAP <-> DB, but you could easily modify the script to insert the
connections, instead.

You could also write a script (bash with curl or an Ansible Playbook, for
example) that leverages Guacamole's REST API and loops through with the
desired information to create the connections via the Guacamole Client
API.  This would be slightly safer, since the API would check for the
required information and fail the insert operation if something was amiss.

-Nick

Reply via email to