[NTLUG:Discuss] Im still having problems with pppd

Jay Urish j at dalwan.net
Thu Jun 1 17:15:13 CDT 2000


Hey Gang,
I'm still ahving problems with pppd on a mandrake 6.1 system. i have kernel 
2.2.13 and pppd ppp-2.3.8-1mdk

I have the modem and mgetty set up right but pppd just does not want to 
cooperate..

when you dial in, mgetty sees the AutoPPP request and spawns pppd. pppd 
then promptly fails--

Here is a snippit

Jun  1 13:16:34 mail mgetty[18289]: data dev=ttyS0, pid=18289, 
caller='none', conn='LAPM COMPRESSED', name='', cmd='/usr/sbin/pppd', 
user='/AutoPPP/'
Jun  1 13:16:34 mail pppd[18289]: pppd 2.3.8 started by a_ppp, uid 0
Jun  1 13:16:34 mail pppd[18289]: Using interface ppp0
Jun  1 13:16:34 mail pppd[18289]: Connect: ppp0 <--> /dev/ttyS0
Jun  1 13:16:38 mail pppd[18289]: PAP login failure for jtest
Jun  1 13:16:38 mail pppd[18289]: Connection terminated.
Jun  1 13:16:38 mail pppd[18289]: Exit.
Jun  1 13:30:00 mail kernel: PPP: ppp line discipline successfully 
unregistered



here are some config file snips

from etc/ppp/options

auth -chap +pap login modem crtscts debug proxyarp lock ms-dns 199.34.18.59



from login.config


# login.config
#
# This is a sample "login dispatcher" configuration file for mgetty
#
# Format:
#       username userid utmp_entry login_program [arguments]

jtest - @       /usr/sbin/pppd auth +pap -chap login kdebug 7 debug
#
# Meaning:
#       for a "username" entered at mgettys login: prompt, call
#       "login_program" with [arguments], with the uid set to "userid",
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
# username may be prefixed / suffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
#
# login_program is the program that will be exec()ed, with the arguments
#  passed in [arguments]. A "@" in the arguments will be replaced with the
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
#
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
#  mgetty has to be compiled with "-DAUTO_PPP" for this to work.
#  Warning: Case is significant, AUTOPPP or autoppp won't work!
#  Consult the "pppd" man page to find pppd options that work for you.
#
#  NOTE: for *some* users, the "-detach" option has been necessary, for
#        others, not at all. If your pppd doesn't die after hangup, try it.
#
#  NOTE2: "kdebug 7 debug" creates lots of debugging info. If all works,
#         remove those!
#
/AutoPPP/ -     a_ppp   /usr/sbin/pppd auth -chap +pap passive login debug
#/AutoPPP/ -            -               /usr/sbin/pppd
#
#
# An example where no login name in the argument list is desired:
#  automatically telnetting to machine "smarty" for a given login name
#
#telnet-smarty  gast    telnet  /usr/bin/telnet -8 smarty
#
# This is the "standard" behaviour - *dont* set a userid or utmp
#  entry here, otherwise /bin/login will fail!
#  This entry isn't really necessary: if it's missing, the built-in
#  default will do exactly this.
#
*       -       -       /bin/login @

and lastly pap-secrets

# Secrets for authentication using PAP
# client    server  secret          IP addresses
j           *       password	    199.34.18.60
jtest       *       342342            199.34.18.60

I have looked a whole pile of howto's and they haven't helped..

Does the version of pppd I have not have AutoPPP enabled? I think it does, 
because it spawns it with no problem.. I'm just wondering if pppd can't 
read the password files or something..

any hints or pointers would be a real help..

Thanks,

Jay


Jay Urish
Network Engineer - Dallas Wide Area Networking L.L.C
www.dalwan.net





More information about the Discuss mailing list