1 // a setuid helper program for machines which use shadow passwords
3 // Copyright (c) 1987-2022 by Nathan Bryant and the citadel.org team
5 // This program is open source software. Use, duplication, or disclosure
6 // is subject to the terms of the GNU General Public License, version 3.
15 #include <sys/types.h>
16 #include <libcitadel.h>
18 #include "../server/config.h"
19 #include "../server/citadel_dirs.h"
20 #include "../server/citadel.h"
29 read(0, &uid, sizeof(uid_t)); // uid
30 read(0, buf, 256); // password
35 if (validate_password(uid, buf)) {