You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by "André R. Basel" <an...@basel.co.nz> on 2023/04/30 11:31:49 UTC
TOTP & Docker
Hi
I am looking at https://guacamole.apache.org/doc/gug/totp-auth.html. I am guessing that this is for a non-docker install.
Given that the docker container resets itself each time one runs it, how do you create and copy the relevant files?
André
Sent with [Proton Mail](https://proton.me/) secure email.
Re: TOTP & Docker
Posted by "André R. Basel" <an...@basel.co.nz>.
Thanks Nick
Worked like a dream. All I needed to do was add -e TOTP_ENABLED=true
Many thanks
André
Sent with Proton Mail secure email.
------- Original Message -------
On Monday, May 1st, 2023 at 12:25 AM, Nick Couchman <vn...@apache.org> wrote:
> On Sun, Apr 30, 2023 at 7:33 AM André R. Basel andre@basel.co.nz wrote:
>
> > Hi
> >
> > I am looking at https://guacamole.apache.org/doc/gug/totp-auth.html. I am guessing that this is for a non-docker install.
> >
> > Given that the docker container resets itself each time one runs it, how do you create and copy the relevant files?
>
>
> Yeah, we haven't always kept up the Docker-related documentation, so
> looks like the TOTP stuff needs to be added. The start.sh script has a
> couple of sections that will help you determine what needs to be
> added:
>
> https://github.com/apache/guacamole-client/blob/823df2d10b4c1d5c24263ea787ad6b5a3a6c40e5/guacamole-docker/bin/start.sh#L1148-L1151
>
> and
>
> https://github.com/apache/guacamole-client/blob/823df2d10b4c1d5c24263ea787ad6b5a3a6c40e5/guacamole-docker/bin/start.sh#L831-L844
>
> At a minimum you'll need to add:
>
> -e TOTP_ENABLED=true
>
> to your container creation/startup arguments, which will link in the
> module, enabling TOTP. Beyond that, if you need to adjust any of the
> TOTP parameters (usually not required), you can add the environment
> variables to do that.
>
> -Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
> For additional commands, e-mail: user-help@guacamole.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: TOTP & Docker
Posted by Nick Couchman <vn...@apache.org>.
On Sun, Apr 30, 2023 at 7:33 AM André R. Basel <an...@basel.co.nz> wrote:
>
> Hi
>
> I am looking at https://guacamole.apache.org/doc/gug/totp-auth.html. I am guessing that this is for a non-docker install.
>
> Given that the docker container resets itself each time one runs it, how do you create and copy the relevant files?
Yeah, we haven't always kept up the Docker-related documentation, so
looks like the TOTP stuff needs to be added. The start.sh script has a
couple of sections that will help you determine what needs to be
added:
https://github.com/apache/guacamole-client/blob/823df2d10b4c1d5c24263ea787ad6b5a3a6c40e5/guacamole-docker/bin/start.sh#L1148-L1151
and
https://github.com/apache/guacamole-client/blob/823df2d10b4c1d5c24263ea787ad6b5a3a6c40e5/guacamole-docker/bin/start.sh#L831-L844
At a minimum you'll need to add:
-e TOTP_ENABLED=true
to your container creation/startup arguments, which will link in the
module, enabling TOTP. Beyond that, if you need to adjust any of the
TOTP parameters (usually not required), you can add the environment
variables to do that.
-Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org