[EMAIL PROTECTED] writes:

> No there isn't really a good way anymore because after pppd 2.3.8, the utmp and
> wtmp files are not being updated by pppd.

This isn't intentional.  The utmp/wtmp updating is not something I use
so if you could debug this (with gdb or whatever) and tell me where
the problem is in the code that would be great.

>  I use a combination of the auth-up
> script and the ip-up script to log connection information.  then I run a scipt
> called dialup_who.pl that does a "ifconfig | grep ppp" to get the ppp interfaces
> currently in use, then checks the log files and builds a listing of current
> users, the date and time they logged in, and the interface and the ip address. 
> It is actually a cgi script and it creates an html document, but it doesn't have
> to.

All this information is in the /var/run/pppd.tdb database.  It would
be relatively easy to write a program to pull it out in whatever
format is useful.  You would need to use pppd/tdb.h and pppd/tdb.c to
access the database.

-- 
Paul Mackerras, Senior Open Source Researcher, Linuxcare, Inc.
+61 2 6262 8990 tel, +61 2 6262 8991 fax
[EMAIL PROTECTED], http://www.linuxcare.com.au/
Linuxcare.  Support for the revolution.

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to