Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.15k stars 557 forks source link

Enhancement Tip - Lock and log off feature on remote user's machine. #649

Open geanferrani123 opened 4 years ago

geanferrani123 commented 4 years ago

Guys, good morning!

I would suggest including a flag or button that allows the technician to choose whether he wants to block or log off or not do any of these actions on the user's computer when he disconnects from the remote session, is it possible?

krayon007 commented 4 years ago

Locking yes. That capability is already there, but as a standalone feature. It should be trivial to add a setting to have it do that on disconnect.

Logging off is more complicated. Not sure if its possible, but if it were, it would complicate things, because on some platforms, KVM is not possible when no users are logged in.

MailYouLater commented 4 years ago

@ryanblenis: Perhaps it would be a good idea to add a hook to allow plugins to define an action that occurs when the user disconnects. This way a plugin could be made that would pop up a 'Would you like to Log off or Lock the remote computer?' to satisfy this request, and #270, and another (or even the same one if it's customizable) could satisfy the request in issue #543.

ryanblenis commented 4 years ago

Thanks @MailYouLater, that could indeed be a good hook to have. I've added a hook for "onDesktopDisconnect" in my development branch that (should it be accepted when the time comes) will add the availability of that hook to plugins. I've currently got a lot of changes going on there for a GUI plugin interface that isn't quite ready for a pull request.

MailYouLater commented 4 years ago

@krayon007: What exactly is disallowed when a user isn't logged in? Screen capture? Input emulation? Both? How difficult would it be to add a feature that allows the remote user to log in so that the remote KVM function becomes usable? I'm imagining it where you click connect on the Desktop tab, and it pops up kind of like this: Remote Login - Username Password

geanferrani123 commented 4 years ago

@ krayon007 : O que exatamente não é permitido quando um usuário não está logado? Captura de tela? Emulação de entrada? Ambos? Quão difícil seria adicionar um recurso que permita ao usuário remoto efetuar login para que a função KVM remota se torne utilizável? Eu estou imaginando onde você clica em conectar na guia Área de trabalho e aparece assim: Login Remoto - Nome de Usuário Senha

MailYouLater, How did you do to enable this feature? Could you explain me?

MailYouLater commented 4 years ago

That's just a mockup to show what I imagine it might look like if a remote login feature were added. There is no remote login feature currently.

geanferrani123 commented 4 years ago

Guys, if I may say, remote login is not necessary, my suggestion was more so that when it terminates remote access, automatically perform the process of locking or logoff of the computer, but on second thought, it will not be necessary, as it ends up being a pretty useless feature for the tool that is getting wonderfully good.

For my part, you can close this topic.

Thank you all for your attention!

MailYouLater commented 4 years ago

It may not be necessary, or even useful for your use case, but it may help people using platforms that don't allow KVM when a user isn't logged in, so I would still like an answer. @krayon007: How difficult do you think it would be to implement a remote login function to work around the issue on some platforms that KVM is unavailable when no user is logged in?

Ylianst commented 4 years ago

I like how the mock up looks very realistic. @krayon007 will need to respond to this. I know on MacOS we can't capture the login screen anymore, not sure about other operating systems.