From owner-freebsd-bugs  Thu Jun 27  3: 0:23 2002
Delivered-To: freebsd-bugs@hub.freebsd.org
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 36A1A37B409
	for <freebsd-bugs@hub.freebsd.org>; Thu, 27 Jun 2002 03:00:12 -0700 (PDT)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5RA0CJU087975
	for <freebsd-bugs@freefall.freebsd.org>; Thu, 27 Jun 2002 03:00:12 -0700 (PDT)
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5RA0BCG087974;
	Thu, 27 Jun 2002 03:00:11 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 01F2437B406
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Jun 2002 02:52:36 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g5R9qYOT069442
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Jun 2002 02:52:34 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g5R9qYT6069441;
	Thu, 27 Jun 2002 02:52:34 -0700 (PDT)
Message-Id: <200206270952.g5R9qYT6069441@www.freebsd.org>
Date: Thu, 27 Jun 2002 02:52:34 -0700 (PDT)
From: Reto Trachsel <reto.trachsel@netmodule.com>
To: freebsd-gnats-submit@FreeBSD.org
X-Send-Pr-Version: www-1.0
Subject: bin/39918: Userland PPP - CHAP and PAP are swaped
Sender: owner-freebsd-bugs@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-bugs.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-bugs>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-bugs>
X-Loop: FreeBSD.org


>Number:         39918
>Category:       bin
>Synopsis:       Userland PPP - CHAP and PAP are swaped
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 27 03:00:11 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Reto Trachsel
>Release:        FreeBSD 4.5-STABLE
>Organization:
Netmodule AG
>Environment:
FreeBSD jona.pacific 4.5-STABLE FreeBSD 4.5-STABLE #1: Wed Apr  3 11:36:12 CEST 2002     root@jona.pacific:/usr/src/sys/compile/JONA  i386

>Description:
Connection with userland ppp ( /usr/sbin/ppp ) to a PPP Server. The LCP Options are set as:
-----
ppp ON jona> show lcp
deflink: LCP [Initial]
 his side: MRU 1500, ACCMAP ffffffff, PROTOCOMP off, ACFCOMP off,
           MAGIC 00000000, MRRU 0, SHORTSEQ off, REJECT 0000
 my  side: MRU 1500, ACCMAP 00000000, PROTOCOMP on, ACFCOMP on,
           MAGIC 1445eca3, MRRU 0, SHORTSEQ off, REJECT 0000

 Defaults: MRU = any (max 2048), MTU = any (max 2048), ACCMAP = 00000000
           LQR period = 30s, Open Mode = active (delay 1s)
           FSM retry = 3s, max 5 Config REQs, 5 Term REQs
    Ident:

 Negotiation:
           ACFCOMP =   disabled & denied
           CHAP =      disabled & denied
           CHAP80 =    disabled & denied
           LANMan =    disabled & denied
           CHAP81 =    disabled & denied
           LQR =       disabled & denied
           PAP =       disabled & accepted
           PROTOCOMP = disabled & denied
-----
-> Only PAP is enabled. 

If i try to connect to the PPP Server, the log of the userland ppp shows, that the pap option was rejected. The channel can't build up.

On the PPP Server (an Embedded System with serveral log an diagnostic monitors, the options are false! The userland ppp send a chap option instead ofthe pap option! The same behavour the other way.

If the PPP Server provide PAP/CHAP negotiation, the userland ppp log shows the LCP PAP Authentification, but in effect, on the PPP Link the CHAP Auth proto is used (MD5 hasches!).
>How-To-Repeat:
Try to connect to a CHAP only PPP-Server with the userland ppp (LCP Option: Only CHAP activated) -> NO connection available.

Try to connect to a PAP only PPP-Server with ths userland ppp (LCP Option: Only PAP activated) -> NO connection available.
>Fix:
Set the correct options in the userland ppp (deny/accept || enable|disable)      
>Release-Note:
>Audit-Trail:
>Unformatted:

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