From nobody@FreeBSD.org  Sun May 22 16:36:59 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CD9A816A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 May 2005 16:36:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ACBBA43D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 May 2005 16:36:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4MGaxve097030
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 May 2005 16:36:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j4MGaxet097029;
	Sun, 22 May 2005 16:36:59 GMT
	(envelope-from nobody)
Message-Id: <200505221636.j4MGaxet097029@www.freebsd.org>
Date: Sun, 22 May 2005 16:36:59 GMT
From: Mats Mellstrand <mats@exmandato.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rexecd mangels the username
X-Send-Pr-Version: www-2.3

>Number:         81364
>Category:       bin
>Synopsis:       rexecd(8) mangles the username
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 22 16:40:02 GMT 2005
>Closed-Date:    
>Last-Modified:  Fri Apr 27 10:08:15 GMT 2007
>Originator:     Mats Mellstrand
>Release:        5.4
>Organization:
>Environment:
FreeBSD a12.mellstrand.net 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat May 21 21:18:47 CEST 2005     mats@a12.mellstrand.net:/usr/obj/usr/src/sys/GENERIC  i386
      
>Description:
I am using a windows based X11 display server, X-win-32.
When connecting to my host running FreeBSD using rexec I get the folloing
in /var/log/messages:    

May 22 14:10:03 a12 rexecd[471]: pA^E^H LOGIN REFUSED from h59 

and the connection fails. 
>How-To-Repeat:
allways
      
>Fix:
in the source file, /usr/src/libexec/rexecd/rexecd.c, commenting line 198

 197  !pam_ok(pam_acct_mgmt(pamh, pam_flags)) ||
 198  /* !pam_ok(pam_get_item(pamh, PAM_USER, (const void **)&user)) || */
 199  (pwd = xgetpwnam(user, &pwd_storage, &pwdbuf,
            
>Release-Note:
>Audit-Trail:
>Unformatted:
