From wkwu@magpie.csie.nctu.edu.tw  Tue Oct 24 23:43:01 2000
Return-Path: <wkwu@magpie.csie.nctu.edu.tw>
Received: from magpie.csie.nctu.edu.tw (magpie.csie.nctu.edu.tw [140.113.209.21])
	by hub.freebsd.org (Postfix) with ESMTP id 9CD8037B479
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 24 Oct 2000 23:42:57 -0700 (PDT)
Received: (from wkwu@localhost)
	by magpie.csie.nctu.edu.tw (8.11.0/8.9.1) id e9P6f3h62620;
	Wed, 25 Oct 2000 14:41:03 +0800 (CST)
Message-Id: <200010250641.e9P6f3h62620@magpie.csie.nctu.edu.tw>
Date: Wed, 25 Oct 2000 14:41:03 +0800 (CST)
From: wkwu@csie.nctu.edu.tw
Sender: wkwu@magpie.csie.nctu.edu.tw
Reply-To: wkwu@csie.nctu.edu.tw
To: FreeBSD-gnats-submit@freebsd.org
Subject: Change (SunOS) NIS passwd error
X-Send-Pr-Version: 3.2

>Number:         22284
>Category:       misc
>Synopsis:       Change (SunOS) NIS passwd error
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 24 23:50:00 PDT 2000
>Closed-Date:    Sun Jun 08 11:29:32 PDT 2003
>Last-Modified:  Sun Jun 08 11:29:32 PDT 2003
>Originator:     Wei-Kai Wu
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Kavalan
>Environment:

yp_server: SunOS-4.1.3 sun4m
client: FreeBSD 4.1.1-STABLE i386

>Description:

We have to using SunOS-4.1.3 yp_server.
patch for /usr/src/usr.bin/passwd/yp_passwd.c
line: 83
-       pw = (struct passwd *)&yp_password;
+       pw = getpwuid(uid); 

It worked well before. Now when changing passwd:
Changing NIS password for wkwu on nis-server.
Old Password: 
New password:
Retype new password:
passwd: failed to change NIS password: RPC: Server can't decode arguments

I have traced some source. But no idea ...

>How-To-Repeat:

Using FreeBSD as yp_client to bind SunOS-4.1.3 yp_server.

>Fix:

No idea.

>Release-Note:
>Audit-Trail:

From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: <freebsd-gnats-submit@freebsd.org>
Cc: <wkwu@csie.nctu.edu.tw>
Subject: Re: misc/22284: Change (SunOS) NIS passwd error
Date: Wed, 3 Jan 2001 16:44:13 +0100 (CET)

 This very problem occurs also on more up-to-date systems, that is:
 
  NIS-Server: Solaris 2.6 /SPARC
  NIS-Client: FreeBSD 4.2 /i386
 
  Changing NIS password for user on NIS-server.
  Old Password:
  New password:
  Retype new password:
  passwd: failed to change NIS password: RPC: Server can't decode arguments
 
 Snoop output on the NIS server:
 
  client -> server  PORTMAP C GETPORT prog=100009 (NISPASSWD) vers=1 proto=UDP
  server -> client  PORTMAP R GETPORT port=819
  client -> server  NISPASSWD C
  server -> client  RPC R (#196) XID=861861090 Garbage arguments
 
 
 It impossible for users to change their passwords. This PR should
 therefore be updated from "Serious" to "Critical"!
 
 Gerald
 -- 
 Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Aug 11 13:26:48 PDT 2002 
State-Changed-Why:  

Does this still occur on more recent releases? If so, a tcpdump 
including the full packet contents (-s 1600 -X) of the failing 
operation would be helpful. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22284 
State-Changed-From-To: feedback->closed 
State-Changed-By: ceri 
State-Changed-When: Sun Jun 8 11:27:43 PDT 2003 
State-Changed-Why:  
Feedback timeout. 

Additionally, I can confirm that with a June 1st stable NIS client 
and a Solaris 8 NIS server, yppasswd works fine, with the proviso 
that you must be using the des password format for your users; this 
is understandable in my opinion. 

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