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.
7 // The program is distributed without any warranty, expressed or implied.
16 #include <sys/types.h>
17 #include <libcitadel.h>
19 #include "../server/config.h"
20 #include "../server/citadel_dirs.h"
21 #include "../server/citadel.h"
30 read(0, &uid, sizeof(uid_t)); // uid
31 read(0, buf, 256); // password
36 if (validate_password(uid, buf)) {