Litarvan / lightdm-webkit-theme-litarvan

Litarvan's LightDM HTML Theme
BSD 3-Clause "New" or "Revised" License
706 stars 73 forks source link

Can't log in when using pam_oath.so for authentication #33

Open draggehn opened 5 years ago

draggehn commented 5 years ago

Hello! Really enjoy your theme, but just ran across an issue.

I was trying to set up HOTP authentication using the pam_oath module but whenever I would hit enter, the greeter would "hang" -- not to the point of me having to change TTYs and kill the greeter, but to where I would have to hit Esc and try to log in again after commenting out the offending line in the lightdm PAM configuration.

/etc/pam.d/lightdm:

#%PAM-1.0
auth      sufficient pam_oath.so usersfile=/etc/users.oath window=30 digits=6
auth        include     system-login
-auth       optional    pam_gnome_keyring.so
account     include     system-login
password    include     system-login
session     include     system-login
-session    optional    pam_gnome_keyring.so auto_start

I noticed that the Antergos webkit theme does not have the same problem, and I can log in with my HOTP-generated code just fine. Maybe there is something you could lift from their codebase that would let your theme do the same thing. Potentially additional information at my thread here: https://www.reddit.com/r/archlinux/comments/9vmdlu/two_factor_authentication_for_lightdm/

Litarvan commented 5 years ago

This is an API that i don't know (tbh Webkit Greeter api is quite strange to login), i'll try to look at the sources