You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by "Falcy, Cedrik" <ce...@bpi.fr> on 2017/11/20 10:58:53 UTC
guacamole ldap
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?
Thanks you very much !
Cédrik Falcy
Bibliothèque publique d'information
Département des systèmes d'information
Service Centre de support
--
------------------------------
Ce message électronique et les éventuels fichiers attachés sont transmis à
l'intention exclusive de leurs destinataires et sont strictement
confidentiels.
Si vous recevez ce message par erreur, veuillez le retourner, le supprimer
et aviser immédiatement l'expéditeur. Toute utilisation de ce message non
conforme à sa destination et toute divulgation non expressément autorisée
sont prohibées (art 226-15 du code pénal).
Quels que soient ses termes, ce message ne saurait constituer un engagement
contractuel ou une offre d'achat de la Bpi, son intégrité et la qualité de
son émetteur ne pouvant être garanties.
------------------------------
Re: guacamole ldap
Posted by XAVIER HENRY <xa...@ut-capitole.fr>.
Hello,
I wrote a python script to populate guacamole db from a Ldap. In my
case i create more 30 000 users
If you are interresting, the source code is here :
https://github.com/union31xh/Guacamole_sync_ldap
It works with the 0.9.10-incubating version.
Xavier
Le 20/11/2017 11:58, Falcy, Cedrik a écrit :
> 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?
>
> Thanks you very much !
>
> Cédrik Falcy
> Bibliothèque publique d'information
> Département des systèmes d'information
> Service Centre de support
>
>
> ------------------------------------------------------------------------
> Ce message électronique et les éventuels fichiers attachés sont
> transmis à l'intention exclusive de leurs destinataires et sont
> strictement confidentiels.
> Si vous recevez ce message par erreur, veuillez le retourner, le
> supprimer et aviser immédiatement l'expéditeur. Toute utilisation de
> ce message non conforme à sa destination et toute divulgation non
> expressément autorisée sont prohibées (art 226-15 du code pénal).
> Quels que soient ses termes, ce message ne saurait constituer un
> engagement contractuel ou une offre d'achat de la Bpi, son intégrité
> et la qualité de son émetteur ne pouvant être garanties.
>
> ------------------------------------------------------------------------
>
> !DSPAM:66151,5a12b59d50017182313179!
Re: guacamole ldap
Posted by Nick Couchman <vn...@apache.org>.
2017-11-20 5:58 GMT-05:00 Falcy, Cedrik <ce...@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