N
N
nextiter2016-08-07 12:28:05
linux
nextiter, 2016-08-07 12:28:05

How to initiate authorization (authentication) in debian (and in particular your PAM module) without pressing enter and without pressing anything on the keyboard?

Good afternoon!
There is a workstation on which debian 8 is installed and there is a card reader. It is necessary to log in the user using the RFID tag in the card. Python scripts were written to read information from the card, send this data to the server and receive a response from the server to allow or deny the user's login.
A PAM module was written in Python, which does not yet read the tag ID (the reader is at work, and I am at home), but sends a constant ID to the server through sockets, and receives a positive response and everything works like clockwork.
I understand that the PAM module starts working only after I enter some user data and press enter or the login button, depending on whether I log in from the console or through lightdm.
And actually the question is: how can I launch it (PAM module) on my own or give the lightdm command programmatically, without pressing buttons, that everything that is needed for authorization has already been received and is it time to launch the PAM module?
I will be very glad if you help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2016-08-07
@skobkin

I think it might help you to look at the sources of the pam_usb ( src ) module, which authenticates when a USB flash drive is connected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question