Date: Wed, 3 Feb 1999 21:36:18 -0800 From: Alan Batie <batie@rdrop.com> To: isp@FreeBSD.ORG Subject: pppd Message-ID: <19990203213618.04230@rdrop.com>
next in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990203213618.04230>
