elementary / elementary/greeter

2-Factor authentication not working in logging screen

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
175
Forks
42
Avg merge
2h 51m
Merged PRs (30d)
1

Description

I have just configured in elementaryOS 0.3.2 Google Authenticator to have 2FA enabled. The instuctions followed are the following (original source: ).

# 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...

Launchpad Details: [#LP1572935](https://bugs.launchpad.net/bugs/1572935) Félix Brezo - 2016-04-21 10:09:53 +0000

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.