File: test.c

package info (click to toggle)
libcap2 1%3A2.22-1.2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 592 kB
  • sloc: ansic: 2,753; sh: 682; makefile: 175
file content (12 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
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);
}