Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 1998 13:38:03 -0600 (CST)
From:      Don.Read@calcasieu.com, EDP@calcasieu.com, x1219 <sysop@calcasieu.com>
To:        marcus@sensation.net.au (Justin)
Cc:        questions@FreeBSD.ORG
Subject:   Re: pap
Message-ID:  <9812121938.AA10302@oak.austin.calcasieu.com>
In-Reply-To: <36729903.F36922B5@sensation.net.au> from "Justin" at Dec 13, 98 03:25:40 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> hello i was wondering
> i was looking to setup a dialin server and i was wondering
> if i use pap, does it use the /etc/master.passwd for authentication or
> wot ????

from usr.sbin/ppp/auth.c

static int
auth_CheckPasswd(const char *name, const char *data, const char *key)
{
  if (!strcmp(data, "*")) {
    /* Then look up the real password database */
    struct passwd *pw;
    int result;

    result = (pw = getpwnam(name)) &&
             !strcmp(crypt(key, pw->pw_passwd), pw->pw_passwd);
    endpwent();
    return result;

It *appears* that it uses the pwent data.

> also if i dont use pap
> does that mean win95 clients
> will have to do 'enable terminal screen after dialing' to start ppp ????
> can u please help me with those 2 questions

you could use a dialup script:
proc main
transmit "^M"
waitfor "ogin"
transmit $USERID
transmit "^M"
waitfor "assword"
transmit $PASSWORD
transmit "^M"
endproc

works for my folks.

Regards,
-- 
 Don Read                                    sysop@calcasieu.com
 EDP Manager                                     dread@texas.net
 Calcasieu Lumber Co.                                  Austin TX
 -- Will sysadmin for food

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9812121938.AA10302>