lemurs icon indicating copy to clipboard operation
lemurs copied to clipboard

Add Autologin

Open axcutul opened this issue 2 years ago • 9 comments

Is it possible to set up lemurs to autologin?

axcutul avatar Apr 20 '23 03:04 axcutul

At the moment, this is not possible. This would require some tweaking and PAM configuration, but is not impossible. How would you imagine this working?

Option 1

Lemurs opens to a screen without login fields, only the environment switcher is visible. After you select the environment it starts that environment.

Option 2

Lemurs starts the environment automatically. The environment is selected either by the last opened environment or by some explicit configuration open.

coastalwhite avatar Apr 21 '23 14:04 coastalwhite

Any updates on this? It would be a really awesome feature!

TomixUG avatar May 22 '23 11:05 TomixUG

I have a rough idea in my head of how to implement this, but I am currently working on other things. I might revisit this issue somewhere in the future, though.

coastalwhite avatar May 24 '23 20:05 coastalwhite

Lemurs opens to a screen without login fields, only the environment switcher is visible. After you select the environment it starts that environment.

How would it possible to switch users in that case?

Let's say system has two users for one of which we want automatic login. One solution I can think of is to have a list of users which are marked for autologin and for them password field is not shown. Whenever system gets to the login page, if selected username is marked for autologin, start a timeout after which user loads without password(or if enter is pressed). If one attempts to change selected username, password field would be shown instead.

Though I am not sure if many people would want autologin with an option to switch users other than me :smile:

ItsEthra avatar May 26 '23 13:05 ItsEthra

I am guessing there will be a configuration option with 3 possibilities:

  • autologin = "disabled": No autologin functionality at all
  • autologin = "no-prompt": Autologin which takes the cached environment, the last logged in user and automatically logs them in without ever prompting them. If they logout they will be prompted again.
  • autologin = "prompt": Opens lemurs as normal, but if the username is not changed. The password field will not be shown. If the user logs in with that username, it will automatically log them in without need for a password.

This is how I would envision it working. Again, I don't really have much time to work on this at the moment, but I might revisit this somewhere in the future. If someone feels like working on this, feel free to do so.

coastalwhite avatar May 26 '23 13:05 coastalwhite

Lean on opt 2 more. Users should create their config to confirm that they genuinely want to enable autologin.

vuongtuha avatar Nov 12 '23 07:11 vuongtuha