2 * a setuid helper program for machines which use shadow passwords
3 * by Nathan Bryant, March 1999
5 * Copyright (c) 1987-2012 by the citadel.org team
7 * This program is open source software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 3.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
23 #include <sys/types.h>
25 #include <libcitadel.h>
29 #include "citadel_dirs.h"
39 read(0, &uid, sizeof(uid_t)); /* uid */
40 read(0, buf, 256); /* password */
44 if (validate_password(uid, buf)) {