Hi Nick,

Thank you for the insight. Apologies for not making myself clear the first
time.

The first example you provided was on the right track. We need to be able
to insert a command line parameter into the initial-program parameter based
on the user account or other criterias.

A common scenario is as follows:

1. User account1 is signing in from the web interface.
2. Using Javascript, we determine whether account1 is using a desktop
browser or a mobile browser.
3. If they are using a desktop browser, simply let account1 connect to the
connection profile they've been assigned to without modifying the
initial-program parameter.
4. If they are using a mobile browser, insert a command line flag into the
initial-program parameter and let them connect with the modified parameter.

I hope this makes sense.

Regards,

On Thu, Nov 16, 2023 at 2:05 AM Nick Couchman <[email protected]> wrote:

> On Tue, Nov 14, 2023 at 10:07 PM Mackie Gippets <
> [email protected]> wrote:
>
>> Hi Mike,
>>
>> What I'm aiming to do is the ability to modify the initial-program
>> configuration setting (from
>> https://guacamole.apache.org/doc/gug/configuring-guacamole.html#session-settings)
>> when a particular user is signed-in through the web interface.
>>
>> The configuration option change shouldn't modify the saved value, but the
>> connection should proceed with the modified initial-program configuration
>> value for the session only.
>>
>> Ideally, we would like to be able to do this using Javascript (through
>> guacamole-common-js), but I wasn't clear on how the UserContext object can
>> be accessed through it.
>>
>>
> Mackie,
> I think Mike was trying to get at an even higher-level view of what you're
> trying to do - that is, _why_ do you want to modify the initial program,
> and what type of modification? For example:
> * You have an Initial Program specified, but you want to insert something
> like the user's name as an argument to the initial program?
> * You want to change the Initial Program from one value to another based
> on something else - group membership, where the user is logging in from,
> what time the user logged in, etc.?
>
> I'm speaking a bit for Mike, here, but I think he was trying to figure out
> if, perhaps, there is some other way to accomplish the changes you're
> trying to make - for example, Parameter Tokens - that might already be
> built into Guacamole - or, at the very least, easily extensible - that
> wouldn't require your trying to mess with the user context via the web
> front-end. Or, if those methods don't work, just trying to help guide you
> in a way that would help update/inject that value in the easiest way
> possible - for example, you can write an authentication extensions that
> wraps/delegates to an existing extension, and use that to make the changes.
> But, again, all of this is speculation and theory until we know more
> precisely why and with what values you're looking to update that
> initial-program parameter.
>
> -Nick
>

Reply via email to