X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fchkpwd.c;h=96fed66203bfa7fff7be592306d0dbd526c3cb0b;hb=HEAD;hp=076138cf8b0b8326e8106dd253f8ace896d38728;hpb=df4369884b613dbd63f2f1a5466ccdbd0048531c;p=citadel.git diff --git a/citadel/chkpwd.c b/citadel/chkpwd.c deleted file mode 100644 index 076138cf8..000000000 --- a/citadel/chkpwd.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * $Id$ - * - * a setuid helper program for machines which use shadow passwords - * by Nathan Bryant, March 1999 - * - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "auth.h" -#include "config.h" -#include "citadel_dirs.h" -#include "citadel.h" - -int main(void) -{ - uid_t uid; - char buf[SIZ]; - - while (1) { - read(0, &uid, sizeof(uid_t)); /* uid */ - read(0, buf, 256); /* password */ - - if (validate_password(uid, buf)) { - write(1, "PASS", 4); - } - else { - write(1, "FAIL", 4); - } - } - - return(0); -}