Capturing caller id
Gert Doering (gert@greenie.muc.de)
Sun, 5 Nov 1995 01:00:57 +0100
Hi,
Cliff Addy wrote:
> I'm still wresting with this caller-id thing. It was suggested that I pull
> the caller-id out of the log file. However, since this system will be
> supporting dozens of simultaneous dialins eventually, I don't think this is
> practical.
Oh, it is. You have a different log file for each modem line, and when the
BBS software is called, it *knows* which log file to look at (ttyname(0)).
No other program can write to this file at the same time, causing race
conditions (or whatever), because only one program is running on that
device at a time...
> What I'd really like to see is for mgetty to not only screen caller numbers,
> but a combination of login-id and phone number. I need to limit logins to
> a specific user from a specific phone number. That user can't call from
> anywhere else and no other user name is authorized to call from that number.
>
> Could I get some guidance on how I can accomplish this? I'm willing to take
> a crack at modifying the source myself, if I can get some clues of where to
> start ...
I think this is very tricky. A user could always enter a "legal" login
name inside mgetty, then feed "/sbin/login" a wrong password, and *then*
use the login name he wants to use.
So you have to do the line/userid checking inside "/sbin/login", not
inside mgetty. On Linux, this isn't too hard, as you have the source for
the login program... (hint, hint)
gert
--
//www.muc.de/~gert
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-3545980 <---new!!! gert.doering@physik.tu-muenchen.de