google / google-authenticator

Open source version of Google Authenticator (except the Android app)
Apache License 2.0
5.22k stars 968 forks source link

openvpn(pam_google_authenticator)[8922]: Invalid verification code` #661

Closed BouchaaraAdil closed 5 years ago

BouchaaraAdil commented 5 years ago

pam keeps reporting that error Dec 19 16:46:16 ip-172-16-100-124 openvpn(pam_google_authenticator)[8922]: Invalid verification code using this configuration on etc/pam.d/openvpn

account required pam_unix.so
account required pam_permit.so
auth requisite pam_google_authenticator.so secret=/etc/openvpn/google-authenticator/${USER} user=gauth forward_pass
auth required pam_unix.so use_first_pass

and openvpn server plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so openvpn on client auth-user-pass

info about package version

yum info google-authenticator
Loaded plugins: priorities, update-motd, upgrade-helper
Installed Packages
Name        : google-authenticator
Arch        : x86_64
Version     : 1.0
Release     : 1.2.amzn1
Size        : 63 k
Repo        : installed
From repo   : amzn-main
Summary     : One-time passcode support using open standards
URL         : http://code.google.com/p/google-authenticator/
License     : ASL 2.0
Description : The Google Authenticator package contains a pluggable authentication
            : module (PAM) which allows login using one-time passcodes conforming to
            : the open standards developed by the Initiative for Open Authentication
            : (OATH) (which is unrelated to OAuth).
            :
            : Passcode generators are available (separately) for several mobile
            : platforms.
            :
            : These implementations support the HMAC-Based One-time Password (HOTP)
            : algorithm specified in RFC 4226 and the Time-based One-time Password
            : (TOTP) algorithm currently in draft.

Available Packages
Name        : google-authenticator
Arch        : i686
Version     : 1.0
Release     : 1.2.amzn1
Size        : 31 k
Repo        : amzn-main/latest
Summary     : One-time passcode support using open standards
URL         : http://code.google.com/p/google-authenticator/
License     : ASL 2.0
Description : The Google Authenticator package contains a pluggable authentication
            : module (PAM) which allows login using one-time passcodes conforming to
            : the open standards developed by the Initiative for Open Authentication
            : (OATH) (which is unrelated to OAuth).
            :
            : Passcode generators are available (separately) for several mobile
            : platforms.
            :
            : These implementations support the HMAC-Based One-time Password (HOTP)
            : algorithm specified in RFC 4226 and the Time-based One-time Password
            : (TOTP) algorithm currently in draft.
ThomasHabets commented 5 years ago

Don't file multiple bugs for the same issue in multiple repositories. Creating extra busywork of closing your redundant bugs is not a good way to ask for help.