You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Allen Chen <ac...@harbourfrontcentre.com> on 2021/04/13 15:07:05 UTC

TOTP behavior changed after upgrade from 1.1.0 to 1.2.0

Hi there,

I have upgraded Guacamole from 1.1.0 to 1.2.0 without any issues.
I just compiled guacamole-server-1.2.0 and replaced 
guacamole-auth-jdbc-mysql, guacamole-auth-totp and guacamole-1.2.0.war.

But now with 1.2.0, TOTP is activated for every users in DB.
In 1.1.0, we can control this by setting "Change own password".
Is there a way to change this behavior back? So we have an option to 
activate TOTP on some users.

Thanks,
Allen
 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: TOTP behavior changed after upgrade from 1.1.0 to 1.2.0

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Apr 14, 2021 at 8:43 AM Allen Chen <ac...@harbourfrontcentre.com>
wrote:

> Hi Nick,
>
> Group membership is the best way to go. I don't connect Guacamole to LDAP
> server due to no group membership in Guacamole.
>

Guacamole does support group membership, including via LDAP. Not exactly
sure what you mean, here, but groups are fully supported in Guacamole since
version 1.0.0.


> Ideally, I would like group membership in Guacamole working like this:
> 1. if a user is in Guracamole group, then login is activated for this user
> 2. if a user is in TOTP group, then TOTP is activated for this user
> 3. and more features can be added like this
>

Yes, I think this is what we are aiming to do by adding TOTP group
configuration support. The first item - limiting login based on group
(particularly via LDAP) is definitely possible, already - I do this today.
The second item is not possible, yet, but on the roadmap.

-Nick

>

Re: TOTP behavior changed after upgrade from 1.1.0 to 1.2.0

Posted by Allen Chen <ac...@harbourfrontcentre.com>.
Hi Nick,

Group membership is the best way to go. I don't connect Guacamole to 
LDAP server due to no group membership in Guacamole.

Ideally, I would like group membership in Guacamole working like this:
1. if a user is in Guracamole group, then login is activated for this user
2. if a user is in TOTP group, then TOTP is activated for this user
3. and more features can be added like this

Thanks,

Allen

On 4/13/2021 12:23 PM, Nick Couchman wrote:
> On Tue, Apr 13, 2021 at 11:07 AM Allen Chen 
> <achen@harbourfrontcentre.com <ma...@harbourfrontcentre.com>> 
> wrote:
>
>     Hi there,
>
>     I have upgraded Guacamole from 1.1.0 to 1.2.0 without any issues.
>     I just compiled guacamole-server-1.2.0 and replaced
>     guacamole-auth-jdbc-mysql, guacamole-auth-totp and
>     guacamole-1.2.0.war.
>
>     But now with 1.2.0, TOTP is activated for every users in DB.
>     In 1.1.0, we can control this by setting "Change own password".
>     Is there a way to change this behavior back? So we have an option to
>     activate TOTP on some users.
>
>
> Yes, in version 1.2.0 we changed how extensions interact with other 
> extensions, essentially giving extensions like TOTP the ability to 
> interact with the database without the user having to have explicit 
> permissions. This was an intentional change, and the prior behavior - 
> where TOTP did not work unless the user had "Change own password" 
> option - was never designed to be a feature, it was just a byproduct 
> of how it was previously implemented.
>
> There is currently a JIRA issue that aims at allowing TOTP to be 
> enabled/disabled based on group membership, but that is not 
> implemented, today, so there's currently no work-around or way to 
> restore the functionality you saw in 1.1.0.
>
> https://issues.apache.org/jira/browse/GUACAMOLE-1219 
> <https://issues.apache.org/jira/browse/GUACAMOLE-1219>
>
> -Nick

 

Re: TOTP behavior changed after upgrade from 1.1.0 to 1.2.0

Posted by Nick Couchman <vn...@apache.org>.
On Tue, Apr 13, 2021 at 11:07 AM Allen Chen <ac...@harbourfrontcentre.com>
wrote:

> Hi there,
>
> I have upgraded Guacamole from 1.1.0 to 1.2.0 without any issues.
> I just compiled guacamole-server-1.2.0 and replaced
> guacamole-auth-jdbc-mysql, guacamole-auth-totp and guacamole-1.2.0.war.
>
> But now with 1.2.0, TOTP is activated for every users in DB.
> In 1.1.0, we can control this by setting "Change own password".
> Is there a way to change this behavior back? So we have an option to
> activate TOTP on some users.
>
>
Yes, in version 1.2.0 we changed how extensions interact with other
extensions, essentially giving extensions like TOTP the ability to interact
with the database without the user having to have explicit permissions.
This was an intentional change, and the prior behavior - where TOTP did not
work unless the user had "Change own password" option - was never designed
to be a feature, it was just a byproduct of how it was previously
implemented.

There is currently a JIRA issue that aims at allowing TOTP to be
enabled/disabled based on group membership, but that is not implemented,
today, so there's currently no work-around or way to restore the
functionality you saw in 1.1.0.

https://issues.apache.org/jira/browse/GUACAMOLE-1219

-Nick