close(child_in[1]);
/* run winbind as the user that invoked pppd */
setgid(getgid());
if (setgid(getgid()) < 0 || setuid(getuid()) < 0) {
setuid(getuid());
perror("pppd/winbind: failed to drop privileges");
exit(1);
}
execl("/bin/sh", "sh", "-c", ntlm_auth, NULL);
perror("pppd/winbind: could not exec /bin/sh");