a system that fails to build. (The non-chkpwd version of validpw() was
removed a long time ago.)
########################################################################
TARGETS=@TARGETS@
-CHKPWD=@CHKPWD@
RUN_DIR=@MAKE_RUN_DIR@
SPOOL_DIR=@MAKE_SPOOL_DIR@
ETC_DIR=@MAKE_ETC_DIR@
EXEEXT=@EXEEXT@
CLIENT_TARGETS=citadel$(EXEEXT) whobbs$(EXEEXT) stress$(EXEEXT)
-SERVER_TARGETS=citserver $(CHKPWD)
+SERVER_TARGETS=citserver chkpwd
SERV_MODULES=serv_chat.o \
serv_upgrade.o \
serv_smtp.o \
LIBS="-lcrypt $LIBS"])
fi
fi
- if test "$ac_cv_func_crypt" = yes -o "$ac_cv_lib_crypt_crypt" = yes -o "$ac_cv_func_pam_start" = yes; then
- if test "$enable_chkpwd" != no; then
- AC_DEFINE(ENABLE_CHKPWD, [], [define this to enable use of the chkpwd program (for shadow passwords)])
- CHKPWD=chkpwd
- else
- AUTH=auth.lo
- fi
- fi
test -f /usr/local/lib/libresolv.a && LDFLAGS="$LDFLAGS -L/usr/local/lib"
AC_CHECK_LIB(resolv, res_query, RESOLV="$RESOLV -lresolv")
dnl Done! Now write the Makefile and sysdep.h
AC_SUBST(AUTH)
-AC_SUBST(CHKPWD)
AC_SUBST(RESOLV)
AC_SUBST(chkpwd_LIBS)
AC_SUBST(TARGETS)
#include <string.h>
#include <limits.h>
-#ifndef ENABLE_CHKPWD
#include "auth.h"
-#endif
#include "citadel.h"
#include "server.h"
#include "database.h"
}
}
-#ifdef ENABLE_CHKPWD
/*
- * an alternate version of validpw() which executes `chkpwd' instead of
- * verifying the password directly
+ * Validate a password on the host unix system by calling the 'chkpwd' utility
*/
static int validpw(uid_t uid, const char *pass)
{
return 0;
}
-#endif
void do_login()
{