From owner-freebsd-bugs Wed Jul 15 01:50:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA15877 for freebsd-bugs-outgoing; Wed, 15 Jul 1998 01:50:47 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA15869 for ; Wed, 15 Jul 1998 01:50:46 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA02260; Wed, 15 Jul 1998 01:50:01 -0700 (PDT) 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: X-Send-Pr-Version: www-1.0 Subject: bin/7287: Incorrect domain name for MAP_UPDATE in multidomain NIS environment Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7287 >Category: bin >Synopsis: 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 >Last-Modified: >Originator: Andy Farkas >Organization: Speed Internet Services Pty Ltd >Release: 2.2.6-RELEASE >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; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message