Configuring PAM Authenticator for logging in via Password

  1. Download the PAM.So file from https://authnull.com/downloads.

  2. The above step would have generated pam_authenticator.so in this location /usr/local/lib/security/pam_authenticator.so

  3. For Password authentication, Please add the below lines to /etc/pam.d/common-auth

     auth required /usr/local/lib/security/pam_authenticator.so 
     auth required pam_permit.so
    
  4. Now login to the VM using su

         su tempadminmfa
    

    i. Please enter the password for user tempadminmfa

    ii. DID Authentication will initiate → please check / var/log/auth.log

    iii.Once the authentication completes, the user can be logged in.

    iv. In case of failure, the authentication denies.