I would to like to validate a username and password correspond to a valid unix account.
The current solution I have uses expect to wait for a password prompt and then supply the password and see if the login succeeds.
Is there a kernel API or a user space function that can validate a login / password.
I guess part of my confusion is I am not sure if this is a kernel space service?