google / google/google-authenticator-libpam

Ask for a second factor (OTP) even if username is not valid

Open
#170 7 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C
Stars
2k
Forks
305
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am playing around with Debian 10, OpenSSH and Google Authenticator PAM module.
So far so good.
Almost everything works as expected.
I am using password and OTP.
PAM is configured to ask for OTP even if the password is not valid.
Now I found out SSHD is not going to ask for OTP if the username is not valid.
That is useful for intruders, to guess usernames, but absolutely not what i want.

I thought it would be a good idea, if the system behaves the same, and ask for OTP, no mater if the password is valid or not.
Am I wrong?
Is there a way to ask for OTP even if the user is not valid?

Thanks for your answers.

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.