| 1 |
#include <stdio.h> |
| 2 |
#include <stdlib.h> |
| 3 |
#include <security/pam_modules.h> |
| 4 |
|
| 5 |
int main(int argc, char **argv) |
| 6 |
{ |
| 7 |
if (pam_sm_authenticate(NULL, 0, 0, NULL) != PAM_SUCCESS) { |
| 8 |
printf("failed to authenticate\n"); |
| 9 |
exit(1); |
| 10 |
} |
| 11 |
exit(0); |
| 12 |
} |