From nobody  Wed Jul 15 01:50:34 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id BAA15849;
          Wed, 15 Jul 1998 01:50:34 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199807150850.BAA15849@hub.freebsd.org>
Date: Wed, 15 Jul 1998 01:50:34 -0700 (PDT)
From: andyf@speednet.com.au
To: freebsd-gnats-submit@freebsd.org
Subject: Incorrect domain name for MAP_UPDATE in multidomain NIS environment
X-Send-Pr-Version: www-1.0

>Number:         7287
>Category:       bin
>Synopsis:       [nis] Incorrect domain name for MAP_UPDATE in multidomain NIS environment
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 15 01:50:01 PDT 1998
>Closed-Date:    
>Last-Modified:  Fri Sep 03 09:12:59 UTC 2010
>Originator:     Andy Farkas
>Release:        2.2.6-RELEASE
>Organization:
Speed Internet Services Pty Ltd
>Environment:
FreeBSD johnny.syd.speednet.com.au 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Mon Jun  1 22:22:08 EST 1998     root@johnny.speednet.com.au:/usr/src/sys/compile/JOHNNY  i386

>Description:
When doing a passowrd change on a system with a NIS server supporting
multiple domains, the domain name is passed to the MAP_UPDATE command.
Currently, it is passing an incorrect value.

>How-To-Repeat:
Configure NIS for multi-domain support.  run rpc.yppasswdd with the -m
switch.  Do a password change on another domain that the master controls.
Look at end of /var/log/messages for error log showing incorrect domain
name.

>Fix:
--- yppasswdd_server.c.orig     Wed Nov  5 18:37:01 1997
+++ yppasswdd_server.c  Wed Jul 15 17:18:49 1998
@@ -395,7 +395,7 @@
                        if (!strstr(data.data, pwbuf)) {
                                yp_error("warning: found entry for user %s \
 in map %s@%s with wrong UID", pw->pw_name, maps[i], domain);
-                               yp_error("there may ne more than one user
+                               yp_error("there may be more than one user
 with the same name - continuing");
                                continue;
                        }
@@ -642,10 +642,10 @@
        case 0:
                if (inplace && !rval) {
                        execlp(MAP_UPDATE_PATH, MAP_UPDATE, passfile,
-                               yppasswd_domain, "pushpw", NULL);
+                               domain, "pushpw", NULL);
                } else {
                        execlp(MAP_UPDATE_PATH, MAP_UPDATE, passfile,
-                               yppasswd_domain, NULL);
+                               domain, NULL);
                }
                yp_error("couldn't exec map update process: %s",
                                        strerror(errno));
@@ -750,7 +750,7 @@
         * domain, change the path to master.passwd accordingly.
         */

-       if (strcmp(argp->domain, yppasswd_domain)) {
+       if (multidomain) {
                snprintf(passfile_buf, sizeof(passfile_buf),
                        "%s/%s/master.passwd", yp_dir, argp->domain);
                passfile = (char *)&passfile_buf;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sat Jan 19 14:14:59 PST 2002 
State-Changed-Why:  

Does this problem still occur in more recent releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7287 

From: Ian Dowse <iedowse@maths.tcd.ie>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/7287: Incorrect domain name for MAP_UPDATE in multidomain NIS environment 
Date: Mon, 21 Jan 2002 21:09:47 +0000

 Adding to the audit trail:
 
 In message <Pine.BSF.4.33.0201211515260.428-100000@backup.af.speednet.com.au>, 
 Andy Farkas writes:
 >On Sat, 19 Jan 2002 iedowse@FreeBSD.org wrote:
 >
 >> Does this problem still occur in more recent releases?
 >>
 >> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7287
 >>
 >
 >I dont use NIS anymore. Although the code has been touched since, and the
 >spelling mistake corrected, my other changes have not been implemented and
 >so I would guess that it still does not function correctly.
 >
 >--
 >
 > :{ andyf@speednet.com.au
 >
 >        Andy Farkas
 >    System Administrator
 >   Speednet Communications
 > http://www.speednet.com.au/
 >
 >
 >
State-Changed-From-To: feedback->open 
State-Changed-By: ceri 
State-Changed-When: Sun Jun 8 10:57:46 PDT 2003 
State-Changed-Why:  
Feedback has been requested and received; throw this PR back open. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7287 
>Unformatted:
