I'm trying to configure google authenticator with linux local users database for 3 days already and keep failling.
i have configured openvpn + LDAP + certificate successfully. But when i try to add google authenticator even for local users in passwd/shadow i got this logs.
Code: Select all
Oct 2 12:26:40 openvpn openvpn(pam_google_authenticator)[1168]: Accepted google_authenticator for linus
Oct 2 12:26:40 openvpn openvpn(pam_google_authenticator)[1372]: Failed to change user id to "linus"
Oct 2 12:26:40 openvpn perl[1372]: pam_unix(openvpn:auth): auth could not identify password for [linus]
Code: Select all
auth required pam_google_authenticator.so forward_pass
auth required pam_unix.so use_first_pass
I can see it accepts google authenticator code but fails to get the local user and i dont know why.
Can someone give me a light?
thanks in advance.