You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
240 B

#include <stdio.h>
#include <stdlib.h>
#include <security/pam_modules.h>
int main(int argc, char **argv)
{
if (pam_sm_authenticate(NULL, 0, 0, NULL) != PAM_SUCCESS) {
printf("failed to authenticate\n");
exit(1);
}
exit(0);
}