2-Factor authentication not working in logging screen

Bug #1572935 reported by Félix Brezo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Greeter
New
Wishlist
Unassigned

Bug Description

I have just configured in elementaryOS 0.3.2 Google Authenticator to have 2FA enabled. The instuctions followed are the following (original source: <https://askubuntu.com/questions/193248/google-authenticator-for-desktop-lightdm-or-gdm-plugin>).

# Installation
sudo apt-get install libpam-google-authenticator
# Running the app
google-authenticator

# Some options configured afterwards
[...]

Added to the /etc/pam.d/login the following lines at the end to enable it.
# 2-Factor Authentication
auth required pam_google_authenticator.so

After doing so: Ctrl+Shift+F1

The verification code is requested as expected and works perfectly. Sweet.

I wanted however to activate this option in the login screen. Thus I added the following lines to: /etc/pam.d/lightdm and /etc/pam.d/lightdm-greeter.

# 2-Factor Authentication
auth required pam_google_authenticator.so

However, when trying to login and the password is requested (and properly provided), the Login screen does not request the verification code as it happens with the login and I cannot connect! Am I missing something?

NOTE: I could deactivate the pam.d configuration by login with the terminal (Ctrl+Shift+F1 again), inserting the verificatoin code for the 2FA, sudoing, and removing the added lines, but I feel that something needs to be fixed around there...

Félix Brezo (febrezo)
description: updated
description: updated
Changed in pantheon-greeter:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.