diff options
Diffstat (limited to 'pam_cap/test.c')
-rw-r--r-- | pam_cap/test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pam_cap/test.c b/pam_cap/test.c new file mode 100644 index 0000000..5150ba5 --- /dev/null +++ b/pam_cap/test.c @@ -0,0 +1,12 @@ +#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); +} |