I am trying to set up my linux box to accept ppp connections using the /etc/passwd file for authorisation. I can get mgetty to detect the that the call is a ppp call and spawn pppd, but i can't get pppd authorisation working.
If I have this in my /usr/local/etc/mgetty+sendfax/login.conf
/AutoPPP/ a_ppp /usr/sbin/pppd
then someone can dial in, but no authentication happens.
if I have this,
/AutoPPP/ a_ppp /usr/sbin/pppd auth -chap +pap login
which is what I think should be happening, authentication always fails, even though the correct user/passwd (from /ec/passwd) is used.
I Suspect what I need is something in my /etc/ppp/pap-secrets but I can't work out what. Do I need a line for each user I want to be able to do ppp? or is there one magic line for all users?
Also once I have authorisation going I would like to track how much data is being sent to each users. How would I do that?