From user-return-6126-archive-asf-public=cust-asf.ponee.io@guacamole.apache.org Sat May 11 21:48:11 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 10E37180651 for ; Sat, 11 May 2019 23:48:10 +0200 (CEST) Received: (qmail 16487 invoked by uid 500); 11 May 2019 21:48:10 -0000 Mailing-List: contact user-help@guacamole.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.apache.org Delivered-To: mailing list user@guacamole.apache.org Received: (qmail 16423 invoked by uid 99); 11 May 2019 21:48:10 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2019 21:48:10 +0000 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 9D3CB1B65 for ; Sat, 11 May 2019 21:48:09 +0000 (UTC) Received: by mail-ed1-f52.google.com with SMTP id n17so10913430edb.0 for ; Sat, 11 May 2019 14:48:09 -0700 (PDT) X-Gm-Message-State: APjAAAVl5fnloLJluTT9t2/BhYj/4Jocb+J3boj9UhJx0gTKf+BLnG+j 3IShoAQrya/LN8clPxoZ2TJO0rpjG8caqfiWJCMElQ== X-Google-Smtp-Source: APXvYqyRi8ZaVRa8CNQxmgxcIBrBxo9kKYPxgnwi7oVGIgK3veY30QNqKeW5YKb36S8epnyCkj90R1WUSnPDxSiBD84= X-Received: by 2002:a17:906:b345:: with SMTP id cd5mr15076369ejb.191.1557611287848; Sat, 11 May 2019 14:48:07 -0700 (PDT) MIME-Version: 1.0 References: <148644210.4349306.1556013793894.ref@mail.yahoo.com> <148644210.4349306.1556013793894@mail.yahoo.com> In-Reply-To: From: Mike Jumper Date: Sat, 11 May 2019 14:47:31 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: dynamic param values for user-mapping.xml To: user@guacamole.apache.org Content-Type: multipart/alternative; boundary="00000000000082c3350588a3a348" --00000000000082c3350588a3a348 Content-Type: text/plain; charset="UTF-8" On Tue, Apr 23, 2019 at 9:09 AM Nick Couchman wrote: > ... > > >> Also note that I'd like the hostname to be dynamic too as I have a script >> that checks several things in order to determine which RDP server a user >> should connect to (eg. checks ressource usage on every server, checks >> whether a previously connected user session was inadvertantly cut off, >> etc., and finally outputs the name or IP address of the RDP server). >> > > This would more difficult to do, and would probably be the right place for > a custom authentication extension that does these checks and keeps track of > things for you. A script would work with the user-mapping.xml file, but, > again, that would lack authentication integration with any of the other > modules, so I think that would probably be less helpful than writing an > extension. > This is essentially what we've done at my day job to provide a live demo. We don't use user-mapping.xml, but we store a partially variable set of connection parameters within a static JSON file and leverage custom parameter tokens to define the variable portions, such as the IP address of the machine chosen to fulfill the connection request and the username assigned to the connection. The selection of machine is driven by sampling system load, similar to what Vieri is describing. It does require writing an extension but is definitely doable. - Mike --00000000000082c3350588a3a348 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Apr 23, 2019 at 9:09 AM Nick Couc= hman <vnick@apache.org> wrote= :
...
=C2=A0
Also note that I'd like the hostname to be dynamic too as I have a scri= pt that checks several things in order to determine which RDP server a user= should connect to (eg. checks ressource usage on every server, checks whet= her a previously connected user session was inadvertantly cut off, etc., an= d finally outputs the name or IP address of the RDP server).

This would more difficult to do, and would probably b= e the right place for a custom authentication extension that does these che= cks and keeps track of things for you.=C2=A0 A script would work with the u= ser-mapping.xml file, but, again, that would lack authentication integratio= n with any of the other modules, so I think that would probably be less hel= pful than writing an extension.

This is essentially what we've done at my day job to provide a l= ive demo. We don't use user-mapping.xml, but we store a partially varia= ble set of connection parameters within a static JSON file and leverage cus= tom parameter tokens to define the variable portions, such as the IP addres= s of the machine chosen to fulfill the connection request and the username = assigned to the connection. The selection of machine is driven by sampling = system load, similar to what Vieri is describing.

= It does require writing an extension but is definitely doable.
- Mike

--00000000000082c3350588a3a348--