my aim is to create custom PAM authentication module based on face recognition.
I am currently having some behavioral issues, because, the way I want this to work is:
- user boots the PC,
- camera runs and makes face recognition
- based on who is recognized, user is logged to a proper account.
there might be the issue, when user has multiple accounts, but let's assume this is not important.
So in this scenario I want to be able to determine user on my own, without user interaction. And the usual way to find out username in pam authentication module is by calling pam_get_user
.
Is this possible to make it work the way I want, or the user have to pass it's username every time he/she wants to login?