Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autologin when pam allows #28

Open
necauqua opened this issue Oct 19, 2018 · 2 comments
Open

Autologin when pam allows #28

necauqua opened this issue Oct 19, 2018 · 2 comments

Comments

@necauqua
Copy link

I am not sure how correct my request is, but for example standard lightdm greeter allows you to login without entering your password when some pam module gives you sufficient rights to do so.

So when you have some pam module with 'sufficient' qualifier (or how it is called) and that module gives you permissions without interaction somehow, you can have such button or just automatically log in.

In my case it's pam_usb - on Ubuntu when i plug my USB key (with pamusb.conf configured for my user ofc) in it shows just Log in > button in place of password field.

@prikhi
Copy link
Owner

prikhi commented Oct 19, 2018

So basically, start with a password box & if pam gives autologin access then switch to a "Log In" button, or just automatically log in? I'd be down to support this but I can't give an estimate on when I'd be able to get to it & it'll probably require a bit of code restructuring.

I know the lightdm library provides some lightdm_greeter_*_autologin_* functions but I don't know if they integrate with pam, will have to checkout how the default gtk-greeter does it.

@necauqua
Copy link
Author

You can test it with pamusb and any flash drive (i might have mislead you in calling my old flashstick a 'key').
You can have a config options for choosing between button and just autologin?
Although idk what to do when using a screenlocker, always the button maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants