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. Use, duplication, or disclosure
8 // is subject to the terms of the GNU General Public License, version 3.
9 // The program is distributed without any warranty, expressed or implied.
18 #include <sys/types.h>
20 #include <libcitadel.h>
24 #include "citadel_dirs.h"
34 read(0, &uid, sizeof(uid_t)); /* uid */
35 read(0, buf, 256); /* password */
39 if (validate_password(uid, buf)) {