You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by "Kaminski, Thomas" <Th...@kiongroup.com.INVALID> on 2020/05/06 12:39:47 UTC

Session timeout

Hello together,

we have the challenge, that our users use common service accounts to login into a windows server with rdp.
This works fine and we are happy.

Sometime a user closes the browser without ending the windows session. Log off Chrome and so on.
After this the session is not stopped and another user who logs into guacamole and gets the legacy session of the first user.
Our problem is, the second user is not the first user, and see the foreign content.
This reconnect is in a timeframe of seconds. We not need a solution, that act in a timeframe of minutes.

Is it possible to force an automatic logout from the session?
We tried a lot of local policies on windows side. Without success.
Except the api-session-timeout I didn't find another configuration items. And this is only for idle session in a unit of minutes.

We use Guacamole 1.0 on Debian 10 in Azure. The Backend are Windows Server 2016 in Azure.
Guacamole proxy daemon (guacd) version 1.0.0


With kind regards / Mit freundlichen Grüßen

Thomas Kaminski
Solution Architect

KION Group IT
c/o KION Information Management Services GmbH
Berzeliusstraße 10 | 22113 Hamburg | Germany
Phone: +49 40 7339 2335 | Mobile +49 175 727 95 47
thomas.kaminski@kiongroup.com<ma...@kiongroup.com>


KION Information Management Services GmbH
Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
Registergericht | Court of Registration: Frankfurt am Main (Germany), HRB 110454
USt-Id-Nr. | VAT No. DE 254777238

Geschäftsführung | Managing Director: Hansjörg Heinrich

Re: AW: Session timeout

Posted by ivanmarcus <iv...@yahoo.com.INVALID>.
Ah, thanks Nick, originally I read the question differently. Upon 
re-reading I think I understood the detail incorrectly.

Indeed if the first user *deliberately* logged out, then the second user 
comes along and can log into the original Win session that's a Win issue 
alright.


On 7/05/2020 9:20 a.m., Nick Couchman wrote:
>
>
> On Wed, May 6, 2020 at 4:58 PM ivanmarcus 
> <iv...@yahoo.com.invalid> wrote:
>
>     If I understand your problem correctly; the issue is that a user
>     doesn't log off properly, another user coming along can then take
>     over the original session if the original session hasn't
>     automatically timed out?
>
>     If a user hasn't correctly logged off then Guacamole has no way of
>     knowing if there is simply a 'glitch' in internet traffic,
>     someone's taken a quick break, or whether the user has indeed
>     gone. Because of this there is a specific session timeout value,
>     the default is 60 minutes.
>
>
> It gets a little more complicated than that.  From the original e-mail...
>
> "we have the challenge, that our users use common service accounts to 
> login into a windows server with rdp"
>
> So, the users are sharing Windows accounts, which is why one use can 
> close/disconnect the Guacamole session and another user can come back 
> and log in to that disconnected session and get the same session that 
> the previous user had.
>
> Again, I don't think this is a challenge with Guacamole, nor is it 
> something that Guacamole can resolve - this sounds to me more like a 
> Windows RDP session management issue.
>
> -Nick


Re: AW: Session timeout

Posted by Nick Couchman <vn...@apache.org>.
On Wed, May 6, 2020 at 4:58 PM ivanmarcus <iv...@yahoo.com.invalid>
wrote:

> If I understand your problem correctly; the issue is that a user doesn't
> log off properly, another user coming along can then take over the original
> session if the original session hasn't automatically timed out?
>
> If a user hasn't correctly logged off then Guacamole has no way of knowing
> if there is simply a 'glitch' in internet traffic, someone's taken a quick
> break, or whether the user has indeed gone. Because of this there is a
> specific session timeout value, the default is 60 minutes.
>

It gets a little more complicated than that.  From the original e-mail...

"we have the challenge, that our users use common service accounts to login
into a windows server with rdp"

So, the users are sharing Windows accounts, which is why one use can
close/disconnect the Guacamole session and another user can come back and
log in to that disconnected session and get the same session that the
previous user had.

Again, I don't think this is a challenge with Guacamole, nor is it
something that Guacamole can resolve - this sounds to me more like a
Windows RDP session management issue.

-Nick

Re: AW: Session timeout

Posted by ivanmarcus <iv...@yahoo.com.INVALID>.
If I understand your problem correctly; the issue is that a user doesn't 
log off properly, another user coming along can then take over the 
original session if the original session hasn't automatically timed out?

If a user hasn't correctly logged off then Guacamole has no way of 
knowing if there is simply a 'glitch' in internet traffic, someone's 
taken a quick break, or whether the user has indeed gone. Because of 
this there is a specific session timeout value, the default is 60 minutes.

This is described in the manual here: 
https://guacamole.apache.org/doc/gug/configuring-guacamole.html and reads:

api-session-timeout

     The amount of time, in minutes, to allow Guacamole sessions 
(authentication tokens) to remain valid despite inactivity. If omitted, 
Guacamole sessions will expire after 60 minutes of inactivity.

 From this, and to assist with your problem, I guess you could add the 
'api-session-timeout' parameter to your guacamole properties file and 
reduce the value to a minimal number of minutes, or seconds.

Obviously there is a trade-off, if the connection between guacamole and 
the user is flaky then with reduced timeout that user could be 
forcefully logged off despite being in a valid session. Also (I think) 
if they simply didn't do anything in the session for a period (no 
mouse/keyboard activity) this could also log them off. On this latter 
point I'm a little uncertain as it would depend upon how Guacamole 
determines 'activity', so YMMV...


On 7/05/2020 2:08 a.m., Kaminski, Thomas wrote:
>
> Hello Georgi,
>
> thank you for your answer. And yes, this would be a solution, that we 
> internal discussed.
>
> This solution force a big change in the eureka connection into our 
> self-made identity management system.
>
> I hope to bypass this big workload for my colleagues.
>
> Regards
>
> Thomas
>
> *Von:* Georgе Stoyanov <gs...@gmail.com>
> *Gesendet:* Mittwoch, 6. Mai 2020 15:21
> *An:* user@guacamole.apache.org
> *Betreff:* Re: Session timeout
>
> I have a similar problem and for that, I have created different users 
> on Windows, so each of the Guacamole users has its own account. But 
> that way they will kick each other.
>
> Regards,
>
> Georgi
>
> On Wed, May 6, 2020 at 2:40 PM Kaminski, Thomas 
> <Thomas.Kaminski@kiongroup.com.invalid 
> <ma...@kiongroup.com.invalid>> wrote:
>
>     Hello together,
>
>     we have the challenge, that our users use common service accounts
>     to login into a windows server with rdp.
>
>     This works fine and we are happy.
>
>     Sometime a user closes the browser without ending the windows
>     session. Log off Chrome and so on.
>
>     After this the session is not stopped and another user who logs
>     into guacamole and gets the legacy session of the first user.
>
>     Our problem is, the second user is not the first user, and see the
>     foreign content.
>
>     This reconnect is in a timeframe of seconds. We not need a
>     solution, that act in a timeframe of minutes.
>
>     Is it possible to force an automatic logout from the session?
>
>     We tried a lot of local policies on windows side. Without success.
>
>     Except the api-session-timeout I didn’t find another configuration
>     items. And this is only for idle session in a unit of minutes.
>
>     We use Guacamole 1.0 on Debian 10 in Azure. The Backend are
>     Windows Server 2016 in Azure.
>
>     Guacamole proxy daemon (guacd) version 1.0.0
>
>     With kind regards / Mit freundlichen Grüßen
>
>     Thomas Kaminski
>     Solution Architect
>
>     KION Group IT
>
>     c/o KION Information Management Services GmbH
>
>     Berzeliusstraße 10 | 22113 Hamburg | Germany
>     Phone: +49 40 7339 2335 | Mobile +49 175 727 95 47
>     thomas.kaminski@kiongroup.com <ma...@kiongroup.com>
>
>     KION Information Management Services GmbH
>     Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
>     Registergericht | Court of Registration: Frankfurt am Main
>     (Germany), HRB 110454
>     USt-Id-Nr. | VAT No. DE 254777238
>
>     Geschäftsführung | Managing Director: Hansjörg Heinrich
>
> KION Information Management Services GmbH
> Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
> Registergericht | Court of Registration: Frankfurt am Main (Germany), 
> HRB 110454
> USt-Id-Nr. | VAT No. DE 254777238
>
> Geschäftsführung | Managing Director: Hansjörg Heinrich


AW: Session timeout

Posted by "Kaminski, Thomas" <Th...@kiongroup.com.INVALID>.
Hello Georgi,
thank you for your answer. And yes, this would be a solution, that we internal discussed.
This solution force a big change in the eureka connection into our self-made identity management system.
I hope to bypass this big workload for my colleagues.

Regards
Thomas




Von: Georgе Stoyanov <gs...@gmail.com>
Gesendet: Mittwoch, 6. Mai 2020 15:21
An: user@guacamole.apache.org
Betreff: Re: Session timeout

I have a similar problem and for that, I have created different users on Windows, so each of the Guacamole users has its own account. But that way they will kick each other.

Regards,
Georgi

On Wed, May 6, 2020 at 2:40 PM Kaminski, Thomas <Th...@kiongroup.com.invalid>> wrote:
Hello together,

we have the challenge, that our users use common service accounts to login into a windows server with rdp.
This works fine and we are happy.

Sometime a user closes the browser without ending the windows session. Log off Chrome and so on.
After this the session is not stopped and another user who logs into guacamole and gets the legacy session of the first user.
Our problem is, the second user is not the first user, and see the foreign content.
This reconnect is in a timeframe of seconds. We not need a solution, that act in a timeframe of minutes.

Is it possible to force an automatic logout from the session?
We tried a lot of local policies on windows side. Without success.
Except the api-session-timeout I didn’t find another configuration items. And this is only for idle session in a unit of minutes.

We use Guacamole 1.0 on Debian 10 in Azure. The Backend are Windows Server 2016 in Azure.
Guacamole proxy daemon (guacd) version 1.0.0


With kind regards / Mit freundlichen Grüßen

Thomas Kaminski
Solution Architect

KION Group IT
c/o KION Information Management Services GmbH
Berzeliusstraße 10 | 22113 Hamburg | Germany
Phone: +49 40 7339 2335 | Mobile +49 175 727 95 47
thomas.kaminski@kiongroup.com<ma...@kiongroup.com>


KION Information Management Services GmbH
Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
Registergericht | Court of Registration: Frankfurt am Main (Germany), HRB 110454
USt-Id-Nr. | VAT No. DE 254777238
Geschäftsführung | Managing Director: Hansjörg Heinrich

KION Information Management Services GmbH
Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
Registergericht | Court of Registration: Frankfurt am Main (Germany), HRB 110454
USt-Id-Nr. | VAT No. DE 254777238

Geschäftsführung | Managing Director: Hansjörg Heinrich

Re: Session timeout

Posted by Georgе Stoyanov <gs...@gmail.com>.
I have a similar problem and for that, I have created different users on
Windows, so each of the Guacamole users has its own account. But that way
they will kick each other.

Regards,
Georgi

On Wed, May 6, 2020 at 2:40 PM Kaminski, Thomas
<Th...@kiongroup.com.invalid> wrote:

> Hello together,
>
>
>
> we have the challenge, that our users use common service accounts to login
> into a windows server with rdp.
>
> This works fine and we are happy.
>
>
>
> Sometime a user closes the browser without ending the windows session. Log
> off Chrome and so on.
>
> After this the session is not stopped and another user who logs into
> guacamole and gets the legacy session of the first user.
>
> Our problem is, the second user is not the first user, and see the foreign
> content.
>
> This reconnect is in a timeframe of seconds. We not need a solution, that
> act in a timeframe of minutes.
>
>
>
> Is it possible to force an automatic logout from the session?
>
> We tried a lot of local policies on windows side. Without success.
>
> Except the api-session-timeout I didn’t find another configuration items.
> And this is only for idle session in a unit of minutes.
>
>
>
> We use Guacamole 1.0 on Debian 10 in Azure. The Backend are Windows Server
> 2016 in Azure.
>
> Guacamole proxy daemon (guacd) version 1.0.0
>
>
>
>
>
> With kind regards / Mit freundlichen Grüßen
>
> Thomas Kaminski
> Solution Architect
>
>
>
> KION Group IT
>
> c/o KION Information Management Services GmbH
>
> Berzeliusstraße 10 | 22113 Hamburg | Germany
> Phone: +49 40 7339 2335 | Mobile +49 175 727 95 47
> thomas.kaminski@kiongroup.com
>
>
>
> KION Information Management Services GmbH
> Sitz der Gesellschaft | Registered Office: Frankfurt am Main (Germany)
> Registergericht | Court of Registration: Frankfurt am Main (Germany), HRB
> 110454
> USt-Id-Nr. | VAT No. DE 254777238
> Geschäftsführung | Managing Director: Hansjörg Heinrich
>
>

Re: Session timeout

Posted by Nick Couchman <vn...@apache.org>.
On Wed, May 6, 2020 at 8:40 AM Kaminski, Thomas
<Th...@kiongroup.com.invalid> wrote:

> Hello together,
>
>
>
> we have the challenge, that our users use common service accounts to login
> into a windows server with rdp.
>
> This works fine and we are happy.
>
>
>
> Sometime a user closes the browser without ending the windows session. Log
> off Chrome and so on.
>
> After this the session is not stopped and another user who logs into
> guacamole and gets the legacy session of the first user.
>
> Our problem is, the second user is not the first user, and see the foreign
> content.
>
> This reconnect is in a timeframe of seconds. We not need a solution, that
> act in a timeframe of minutes.
>
>
>
> Is it possible to force an automatic logout from the session?
>
> We tried a lot of local policies on windows side. Without success.
>
> Except the api-session-timeout I didn’t find another configuration items.
> And this is only for idle session in a unit of minutes.
>
>
>
> We use Guacamole 1.0 on Debian 10 in Azure. The Backend are Windows Server
> 2016 in Azure.
>
> Guacamole proxy daemon (guacd) version 1.0.0
>
>
>

How do you handle this without Guacamole?  This doesn't seem to be an issue
with Guacamole so much as it is with Windows session management - that is,
you would have the same issue if your users were using a traditional RDP
client (MS RDP Client) or the Microsoft Web-based RDP gateway?

I don't think Guacamole can necessarily help you with this - since RDP
manages its own sessions, you would have to make sure that the RDP server
is logging the users off as soon as they disconnect.  I believe there are
policies for this that you can enforce in GPO, but it would need to be done
on the Windows side.

-Nick

>