Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 1998 12:27:24 -0500 (CDT)
From:      peter@baileynm.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   misc/8388: Windows DUN sends DOMAINusername, ppp is unhappy.
Message-ID:  <199810201727.MAA06981@pobox.eng.baileynm.com>

next in thread | raw e-mail | index | archive | help

>Number:         8388
>Category:       misc
>Synopsis:       Windows DUN sends DOMAIN\username, ppp is unhappy.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 20 10:30:01 PDT 1998
>Last-Modified:
>Originator:     Peter da Silva
>Organization:
Bailey Network Management
>Release:        FreeBSD 2.2.5-RELEASE i386
>Environment:

	FreeBSD box as dial-in server with ppp and Windows users.

>Description:

	Users forget to take out "DOMAIN" in DUN dialog box when switching
	between NT and BSD dial-in servers. Dialin fails. Users assume it's
	because FreeBSD is a POS and whine about using NT instead. Sysadmin
	fixes problem instead of whining on IRC. Nobody dies.

>How-To-Repeat:

	Dial-in with DOMAIN in DUN dialog box.

>Fix:
	
	If getpwnam fails in pap.c, then call it again with remainder of
	username (pap.c, about line 125) :

     result = (pwd = getpwnam(name)) &&
              !strcmp(crypt(key, pwd->pw_passwd), pwd->pw_passwd);
+    if(!result) {
+        if(!pwd) { /* disgusting hack to avoid complaints about domain auth */
+                char *s;
+                if(s=strchr(name, '\\')) {
+                    result = (pwd = getpwnam(s+1)) &&
+                     !strcmp(crypt(key, pwd->pw_passwd), pwd->pw_passwd);
+                }
+                if(!pwd)
+                        LogPrintf(LogLCP, "No such user?\n");
+        }
+    }
     endpwent();


>Audit-Trail:
>Unformatted:

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



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