Displaying 1 result from an estimated 1 matches for "catch_sigpipe".
2007 Mar 13
2
Authenticating with Active Directory
...- next part --------------
#include "valid.h"
#include <stdarg.h>
#include <shadow.h>
#include <crypt.h>
#include <stdlib.h>
#include <sys/utsname.h>
#include <utmpx.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
void catch_sigpipe(int sig_num)
{
/* We were not able to read off of the domain authentication pipe. */
fputs("Signal error while authenticating domain.\n", stdout);
exit(0);
}
int main(int argc, char **argv) {
printf("userName:userPassword\n");
printf("%s:%s\n", argv[1], arg...