views:

199

answers:

1

Let us imagine for a moment that I have a piece of hardware that can act as an authentication for a user on a given system. I want to write an application in C++ to run as a service, look for this device and if found log the appropriate user in. I believe I have found the API's I would need to use to perform the hardware and service portions of the application but am having a hard time nailing down a way to create a "real" user login. Is this possible? If so where would I look to find resources on accomplishing this? I think of it as being an analog to fingerprint scanner login type devices.

+3  A: 

I think you are probably looking for the GINA ("Graphical Identification aNd Authentication) APIs. There is a good tutorial here.

snowcrash09
You are my new hero. Cheers!
Gabriel
If only I could have extra points for being a hero!
snowcrash09
Congrats on 1k.
Gabriel
Cheers. Does GINA work for you then? It doesn't exactly fit with your idea of a service polling your hardware- I think you have to wait for GINA to load your module when a user tries to login, *then* contact your hardware for authentication.
snowcrash09