Only in ppp-2.3.3.jn: Makefile Only in ppp-2.3.3.jn/chat: Makefile Only in ppp-2.3.3.jn/chat: chat Only in ppp-2.3.3.jn/chat: chat.o Only in ppp-2.3.3.jn/pppd: Makefile diff -c --recursive ppp-2.3.3/pppd/Makefile.linux ppp-2.3.3.jn/pppd/Makefile.linux *** ppp-2.3.3/pppd/Makefile.linux Tue Dec 23 20:59:27 1997 --- ppp-2.3.3.jn/pppd/Makefile.linux Thu Jul 2 21:07:53 1998 *************** *** 79,84 **** --- 79,86 ---- CFLAGS += -DLOCKLIB=1 endif + CFLAGS += -DJN + install: pppd mkdir -p $(BINDIR) $(MANDIR) install -s -c -m 4555 -o root pppd $(BINDIR)/pppd Only in ppp-2.3.3.jn/pppd: ToDo diff -c --recursive ppp-2.3.3/pppd/auth.c ppp-2.3.3.jn/pppd/auth.c *** ppp-2.3.3/pppd/auth.c Thu Nov 27 17:49:15 1997 --- ppp-2.3.3.jn/pppd/auth.c Tue Jul 14 18:52:44 1998 *************** *** 121,126 **** --- 121,131 ---- /* Set if we got the contents of passwd[] from the pap-secrets file. */ static int passwd_from_file; + #ifdef JN + int attempt_auth = 0; + extern char jn_authpass[MAXSECRETLEN]; // I know this is a hack... + #endif + /* Bits in auth_pending[] */ #define PAP_WITHPEER 1 #define PAP_PEER 2 *************** *** 914,926 **** remote_name[0]? remote_name: NULL, (u_int32_t)0, secret, NULL, filename); fclose(f); if (ret < 0) ! return 0; if (passwd != NULL) { strncpy(passwd, secret, MAXSECRETLEN); passwd[MAXSECRETLEN-1] = 0; } BZERO(secret, sizeof(secret)); return 1; } --- 919,943 ---- remote_name[0]? remote_name: NULL, (u_int32_t)0, secret, NULL, filename); fclose(f); + + #ifdef JN + if(attempt_auth) + { + strncpy(secret, jn_authpass, MAXSECRETLEN); + secret[MAXSECRETLEN-1] = 0; + ret = 1; + } + #endif if (ret < 0) ! return 0; ! if (passwd != NULL) { strncpy(passwd, secret, MAXSECRETLEN); passwd[MAXSECRETLEN-1] = 0; } + // syslog(LOG_NOTICE, "secret: %s", secret); BZERO(secret, sizeof(secret)); + // syslog(LOG_NOTICE, "Password: %s", passwd); return 1; } Only in ppp-2.3.3.jn/pppd: auth.o Only in ppp-2.3.3.jn/pppd: ccp.o Only in ppp-2.3.3.jn/pppd: chap.o Only in ppp-2.3.3.jn/pppd: demand.o Only in ppp-2.3.3.jn/pppd: errlist Only in ppp-2.3.3.jn/pppd: fsm.o Only in ppp-2.3.3.jn/pppd: ipcp.o Only in ppp-2.3.3.jn/pppd: ipxcp.o Only in ppp-2.3.3.jn/pppd: lcp.o Only in ppp-2.3.3.jn/pppd: magic.o Only in ppp-2.3.3.jn/pppd: main.o Only in ppp-2.3.3.jn/pppd: md5.o diff -c --recursive ppp-2.3.3/pppd/options.c ppp-2.3.3.jn/pppd/options.c *** ppp-2.3.3/pppd/options.c Thu Nov 27 17:09:34 1997 --- ppp-2.3.3.jn/pppd/options.c Thu Sep 24 22:51:21 1998 *************** *** 118,123 **** --- 118,127 ---- /* Has meaning only with MS-CHAP challenges */ #endif + #ifdef JN + char jn_authpass[MAXSECRETLEN]; + #endif + struct option_info auth_req_info; struct option_info connector_info; struct option_info disconnector_info; *************** *** 253,258 **** --- 257,266 ---- static int setmslanman __P((char **)); #endif + #ifdef JN + static int authpass __P((char **)); + #endif + static int number_option __P((char *, u_int32_t *, int)); static int int_option __P((char *, int *)); static int readable __P((int fd)); *************** *** 412,417 **** --- 420,429 ---- {"ms-lanman", 0, setmslanman}, /* Use LanMan psswd when using MS-CHAP */ #endif + #ifdef JN + {"authpass", 0, authpass}, /* the password to use */ + #endif + {NULL, 0, NULL} }; *************** *** 2550,2553 **** --- 2562,2589 ---- ms_lanman = 1; return (1); } + #endif + + #ifdef JN + + static int + authpass(argv) + char **argv; + { + int i; + extern int attempt_auth; + // strncpy(jn_authpass, argv[0], MAXNAMELEN); + fgets(jn_authpass, MAXNAMELEN, stdin); + // we have to get rid of the new line in the string.... + for(i=0; i