diff -r -u pwauth-2.3.11/config.h pwauth-2.3.11-OK/config.h --- pwauth-2.3.11/config.h 2013-10-04 15:59:08.000000000 +0200 +++ pwauth-2.3.11-OK/config.h 2017-07-14 16:36:40.485755461 +0200 @@ -123,7 +123,7 @@ /* #define SHADOW_NONE /**/ /* #define SHADOW_BSD /* FreeBSD, NetBSD, OpenBSD, BSDI, OS X */ -#define SHADOW_SUN /* Linux, Solaris, IRIX */ +/* #define SHADOW_SUN /* Linux, Solaris, IRIX */ /* #define SHADOW_JFH /**/ /* #define SHADOW_MDW /**/ /* #define SHADOW_AIX /* AIX (see also AUTHENTICATE_AIX) */ @@ -131,7 +131,7 @@ /* HIGH-LEVEL OPTIONS */ -/* #define PAM /* Linux PAM or OpenPAM */ +#define PAM /* Linux PAM or OpenPAM */ /* #define PAM_OLD_OS_X /* PAM on OS X version 10.5 or older */ /* #define PAM_SOLARIS /* PAM on Solaris other than 2.6 */ /* #define PAM_SOLARIS_26 /* PAM on Solaris 2.6 */ @@ -227,8 +227,8 @@ * right with PAM. */ -#define NOLOGIN_FILE "/etc/nologin" /**/ -#define MIN_NOLOGIN_UID 1 /**/ +/* #define NOLOGIN_FILE "/etc/nologin" /**/ +/* #define MIN_NOLOGIN_UID 1 /**/ /* Defining CHECK_LOGIN_EXPIRATION and CHECK_PASSWORD_EXPIRATION causes @@ -279,7 +279,7 @@ * to change the uid list. */ -#define SERVER_UIDS 30 /* user "wwwrun" on the author's system */ +#define SERVER_UIDS 48 /* user "apache" on the Fedora/Centos/RedHat system */ /* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than @@ -291,7 +291,7 @@ * given value will be accepted). */ -#define MIN_UNIX_UID 500 /**/ +#define MIN_UNIX_UID 1000 /**/ /* If IGNORE_CASE is defined, the login given is checked in two different diff -r -u pwauth-2.3.11/lastlog.c pwauth-2.3.11-OK/lastlog.c --- pwauth-2.3.11/lastlog.c 2009-04-04 06:45:56.000000000 +0200 +++ pwauth-2.3.11-OK/lastlog.c 2017-07-14 16:48:36.188144116 +0200 @@ -31,6 +31,7 @@ * ======================================================================= */ +#include #include "pwauth.h" /* LASTLOG - update the system's lastlog */ diff -r -u pwauth-2.3.11/main.c pwauth-2.3.11-OK/main.c --- pwauth-2.3.11/main.c 2013-12-12 17:39:38.000000000 +0100 +++ pwauth-2.3.11-OK/main.c 2017-07-14 16:47:29.324880977 +0200 @@ -44,7 +44,7 @@ #endif -main(int argc, char **argv) +int main(int argc, char **argv) { #ifdef ENV_METHOD char *login, *passwd; diff -r -u pwauth-2.3.11/Makefile pwauth-2.3.11-OK/Makefile --- pwauth-2.3.11/Makefile 2011-10-05 15:45:04.000000000 +0200 +++ pwauth-2.3.11-OK/Makefile 2017-07-14 16:40:31.999730098 +0200 @@ -11,7 +11,7 @@ LOCALFLAGS= -g # For PAM on Redhat Linux -# LIB=-lpam -ldl +LIB=-lpam -ldl # For PAM on Solaris or OS X # LIB=-lpam @@ -29,12 +29,12 @@ pwauth: main.o auth_aix.o auth_bsd.o auth_hpux.o auth_mdw.o auth_openbsd.o \ auth_pam.o auth_sun.o fail_log.o lastlog.o nologin.o snooze.o - $(CC) -o pwauth $(CFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \ + $(CC) -o pwauth $(CFLAGS) $(LDFLAGS) main.o auth_aix.o auth_bsd.o auth_hpux.o \ auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \ lastlog.o nologin.o snooze.o $(LIB) checkfaillog: checkfaillog.o fail_check.o - $(CC) -o checkfaillog $(CFLAGS) checkfaillog.o fail_check.o $(LIB) + $(CC) -o checkfaillog $(CFLAGS) $(LDFLAGS) checkfaillog.o fail_check.o $(LIB) main.o: main.c config.h pwauth.h fail_log.h auth_aix.o: auth_aix.c config.h pwauth.h diff -r -u pwauth-2.3.11/snooze.c pwauth-2.3.11-OK/snooze.c --- pwauth-2.3.11/snooze.c 2011-10-05 15:18:44.000000000 +0200 +++ pwauth-2.3.11-OK/snooze.c 2017-07-14 16:47:33.154781481 +0200 @@ -42,7 +42,7 @@ * sleep time, if other pwauth processes are in sleeps. */ -snooze(int seconds) +void snooze(int seconds) { int slfd; struct flock lock;