I want to add my own two-factor authentication to my ubuntu Linux server using C ++. Iβm going to have an asterisk box call my mobile phone with a unique identifier, which must be entered at the Linux login prompt, before or after the password, with (or) without a certificate - depending on how I configure it. In any case, I would like this additional input step to be part of the input.
Should I use PAM for this? If so, can someone point me to a sample of additional input w / Pam and login?
source share