1 diff -ruN ppp.orig/pppd/auth.c ppp/pppd/auth.c
2 --- ppp.orig/pppd/auth.c 2003-06-12 02:01:21.000000000 +0200
3 +++ ppp/pppd/auth.c 2003-12-02 14:48:40.000000000 +0100
6 if (secret[0] != 0 && !login_secret) {
7 /* password given in pap-secrets - must match */
9 if ((cryptpap || strcmp(passwd, secret) != 0)
10 && strcmp(crypt(passwd, secret), secret) != 0)
15 @@ -1495,8 +1497,10 @@
17 * If no passwd, don't let them login.
19 +#ifndef NO_CRYPT_HACK
20 if (pw->pw_passwd == NULL || strlen(pw->pw_passwd) < 2
21 || strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0)
23 return (UPAP_AUTHNAK);
25 #endif /* #ifdef USE_PAM */
26 diff -ruN ppp.orig/pppd/Makefile.linux ppp/pppd/Makefile.linux
27 --- ppp.orig/pppd/Makefile.linux 2003-11-27 23:00:22.000000000 +0100
28 +++ ppp/pppd/Makefile.linux 2003-12-02 14:47:53.000000000 +0100
30 #LIBS += -lshadow $(LIBS)
34 +CFLAGS += -DNO_CRYPT_HACK
36 ifneq ($(wildcard /usr/include/crypt.h),)
37 CFLAGS += -DHAVE_CRYPT_H=1
39 ifneq ($(wildcard /usr/lib/libcrypt.*),)