Some ideas
"Sarel J. Botha" (sjb@dundee.lia.net)
Sat, 27 Nov 1999 12:50:07 +0200
Hi all
We are currently using portslave as a dialin server at a small ISP. I find
that pslave is a bit unstable and the version that is stable doesn't have
all the features we require, so I thought we could switch to mgetty (which
is to my knowledge very stable).
It doesn't have all the features I would like though. I recently started
coding in C and would like to code these features.
1) I would like to use a separate file for authentication than the default
/etc/passwd and I thought I might as well add PAM support for mgetty as
that would enable one to use a radius server, different configuration
files, or anything else you can code. Could someone please just give me
a few pointers as to what the best way is to do this, as I don't want to
enforce PAM as a dependancy on everybody.
2) When a user connects I want to run a perl script with info about the
user that connected as args (username, speed, ip). This script then
writes to a file that serves the same purpose as utmp/wtmp files and
also logs the connect.
3) I would like to record the number of bytes that were sent/recv'd when a
connection is terminated. I believe pppd makes this quite easy.
4) When the connection is terminated it again executes a perl script but
this time it has args like: username, reason for disconnect, bytes
transferred.
I would appreciate it alot if I could just get some pointers on where to
start.
Thanks
--
------------------
Sarel Botha
sjb@dundee.lia.net
------------------
99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code....