From owner-freebsd-isp Wed Feb 3 21:36:21 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA18193 for freebsd-isp-outgoing; Wed, 3 Feb 1999 21:36:21 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from agora.rdrop.com (agora.rdrop.com [199.2.210.241]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA18187 for ; Wed, 3 Feb 1999 21:36:20 -0800 (PST) (envelope-from batie@agora.rdrop.com) Received: (from batie@localhost) by agora.rdrop.com (8.8.5/8.8.5) id VAA03031; Wed, 3 Feb 1999 21:36:19 -0800 (PST) Message-ID: <19990203213618.04230@rdrop.com> Date: Wed, 3 Feb 1999 21:36:18 -0800 From: Alan Batie To: isp@FreeBSD.ORG Subject: pppd Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-md5; boundary=zYM0uCDKw75PZbzx X-Mailer: Mutt 0.88 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii I'm helping a friend upgrade a system to 2.2.8; he had pppd working fine, but in the new system, Pthththt. First, it looks like there's a bug in the code where if you don't have passwords in pap-secrets, it never gets to check /etc/passwd. I fixed that (patch below), but now it's complaining that the remote host isn't authorized to use the address that I'm assigning it in the options file. Any ideas? *** auth.c.org Wed Feb 3 21:00:53 1999 --- auth.c Wed Feb 3 21:36:23 1999 *************** *** 675,685 **** check_access(f, filename); remote = ipwo->accept_remote? 0: ipwo->hisaddr; if (scan_authfile(f, user, our_name, remote, ! secret, &addrs, filename) < 0 ! || (secret[0] != 0 && (cryptpap || strcmp(passwd, secret) != 0) ! && strcmp(crypt(passwd, secret), secret) != 0)) { ! syslog(LOG_WARNING, "PAP authentication failure for %s", user); ! ret = UPAP_AUTHNAK; } fclose(f); } --- 675,688 ---- check_access(f, filename); remote = ipwo->accept_remote? 0: ipwo->hisaddr; if (scan_authfile(f, user, our_name, remote, ! secret, &addrs, filename) >= 0) { ! ! if (secret[0] != 0 && (cryptpap || strcmp(passwd, secret) != 0) ! && strcmp(crypt(passwd, secret), secret) != 0) { ! ! syslog(LOG_WARNING, "PAP authentication failure for %s", user); ! ret = UPAP_AUTHNAK; ! } } fclose(f); } -- Alan Batie ______ www.rdrop.com/users/batie Me batie@agora.rdrop.com \ / www.qrd.org The Triangle PGPFP DE 3C 29 17 C0 49 7A \ / www.pgpi.com The Weird Numbers 27 40 A5 3C 37 4A DA 52 B9 \/ www.anti-spam.net NO SPAM! --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBNrkx0ov4wNua7QglAQGEQgP/UXrXxMr/vrnAA8WKTcefbX84SCHpCY5x 1TXOtxrolz5KRPku2ixoCcdJ95XI8roLMavu3HD0m55h7iauDvXgBkl1jI3djSYf 9nLPEL8zH3A7maJrXVekJxHrNlD5QMa1Nt57erviC/YSRpV/DOD5XbjOAsuty/Ax OIWD/VgouDw= =Kwyo -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message