summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd/auth.c
Commit message (Collapse)AuthorAgeFilesLines
* In auth_script(), change the size of an array to match the number ofkevlo2007-03-151-1/+1
| | | | arguments.
* Fix a 64 bit time_t bogon that I missed from before. lastlog.ll_time ispeter2003-10-261-1/+1
| | | | not a time_t.
* utmp.ut_time and lastlog.ll_time are explicitly int32_t rather thanpeter2002-11-151-1/+1
| | | | | | | | | | | | time_t. Deal with the possibility that time_t != int32_t. This boils down to this sort of thing: - time(&ut.ut_time); + ut.ut_time = time(NULL); and similar for ctime(3) etc. I've kept it minimal for the stuff that may need to be portable (or 3rd party code), but used Matt's time32 stuff for cases where that isn't as much of a concern. Approved by: re (jhb)
* Unbreak PAP-only authentication.maxim2002-03-051-5/+11
| | | | | | | | PR: i386/34607 Not objected by: peter Approved by: ru Obtained from: ppp-2.4.1b2 MFC after: 1 week
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+3
| | | | Use _PATH_* where where possible.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Merge ppp 2.3.3 -> 2.3.5 changes onto mainline.peter1998-06-201-52/+133
|
* Merge ppp-2.3.3 changes onto mainlinepeter1998-03-221-13/+30
|
* Fix a segmentation violation that happened if "auth" was in thejdp1997-12-131-2/+3
| | | | options file but there was no suitable secret in the secrets file.
* Don't logwtmp(), login() already does it.brian1997-10-281-3/+5
| | | | | Log us out of utmp & wtmp if we're already in there. PR: 4862
* Revive some things that were lost during the ppp-2.3.1 update.peter1997-10-101-2/+48
| | | | | | | | | - (see auth.c rev 1.13) allow the pap/chap secrets file to specify an override for the otherwise hard coded IP addresses. This allows specific users to dial in on a rotary which would otherwise get a dynamic address forced to authenticate and get their own fixed addresses. - (see options.c rev 1.9) recognize the old dns1 and dns2 options. This is a hack (TM). :-)
* Update to pppd-2.3.1, except for the CLOCAL changes while running thepeter1997-08-221-7/+19
| | | | connect script to main.c that can cause problems on bsd-style tty systems.
* *gulp* First pass at merging in ppp-2.3.0's pppd. (this haspeter1997-08-191-159/+573
| | | | | | | | | | | | | | | dial-on-demand, packet filtering, idle timeouts, etc). The IPX support is pretty much there but more work needs to be done in sys-bsd.c for the interface ioctls (Linux has a very different way of configuring IPX interfaces). Along the way some things have temporarily been lost due to very messy conflicts. I will recover them shortly when I can think clearer. The main one is the local:remote address override in pap-secrets and chap-secrets. Some other home-grown features (dns1,dns2) have been implemented differently. Microsoft's chap client auth hacks have been implemented. There are bound to be more rough edges... The changes for connect-max-retries doesn't fit well with the dial-on-demand code.
* Fix a bug (dereferencing zero) introduced by the last mods.brian1997-05-131-2/+2
| | | | Submitted by: David Nugent <davidn@labs.usn.blaze.net.au>
* Suggested by: David Nugentdanny1997-04-161-5/+5
| | | | Use /etc/ppp/ppp.deny instead of /etc/ppp/ppp.disabled
* Reviewed by: Brian Somers <brian@freebsd.org>danny1997-04-151-24/+75
| | | | | | | | pppd now creates /var/run/ttyXn.if file containing the interface name; check that a 'login' user is not listed in /etc/ppp/ppp.disabled; check that a 'login' user's shell is listed in /etc/ppp/ppp.shells; make sure that passwordless 'login' logins are recorded in wtmp and utmp.
* Allow forcing of local_ip:remote_ip in pap-secretsbrian1997-04-131-15/+58
| | | | | | | | and chap-secrets files. This allows specific users to have pre-allocated IP numbers while others get assigned dynamically. Submitted by: David Nugent <davidn@unique.usn.blaze.net.au>
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Connections are timed and the call duration is loggedbrian1997-02-091-1/+7
| | | | | | via syslog. Submitted by: Lars Fredriksen <fredriks@mcs.com> Obtained from: Lars Fredriksen <fredriks@mcs.com>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Cosmetic fix for pppd; login() updates both utmp and wtmp, so don'tmsmith1996-12-311-3/+2
| | | | | | | call logwtmp() again ourselves. This avoids 'last' showing duplicate logins. Submitted by: Daniel O'Callaghan <danny@hilink.com.au>
* Manage UTMP entry if we're doing username/password PAP loginspst1996-11-131-10/+32
|
* Fix potential buffer overrunpst1996-10-011-5/+8
|
* Use libmd.phk1996-03-011-3/+2
| | | | | Add support for negotiating (more like "informing peer") about DNS. Various cleanup of warnings.
* Bring pppd from ppp-2.2 onto the mainline..peter1995-10-311-59/+86
| | | | (more work needs to be done here, I'm trying to beat the supscan)
* Check for expired passwords before allowing access to the system.mpp1995-08-281-1/+4
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Initial revisionwollman1994-09-251-0/+904
OpenPOWER on IntegriCloud