From skynick@stu.lipetsk.ru  Mon Feb 24 14:08:07 2003
Return-Path: <skynick@stu.lipetsk.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F080A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Feb 2003 14:08:07 -0800 (PST)
Received: from falcon.lipetsk.ru (falcon.lipetsk.ru [195.34.224.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DDFD943F85
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 24 Feb 2003 14:08:05 -0800 (PST)
	(envelope-from skynick@stu.lipetsk.ru)
Received: from lstu by falcon.lipetsk.ru with UUCP id <S740406AbTBXWHt>;
	Tue, 25 Feb 2003 01:07:49 +0300
Received: from chuck2.lstu (chuck2.lstu [192.168.15.7]) 
	  by maverick.stu.int (8.9.3/8.8.5) with ESMTP id AAA79363 
	  for <FreeBSD-gnats-submit@freebsd.org> Tue, 25 Feb 2003 00:56:57 +0300 (MSK)
Received: by chuck2.lstu (Postfix, from userid 1000)
	id 4DDB149EA3; Tue, 25 Feb 2003 00:56:55 +0300 (MSK)
Message-Id: <20030224215655.4DDB149EA3@chuck2.lstu>
Date: Tue, 25 Feb 2003 00:56:55 +0300 (MSK)
From: Nick Leuta <skynick@stu.lipetsk.ru>
Reply-To: Nick Leuta <skynick@stu.lipetsk.ru>
To: FreeBSD-gnats-submit@freebsd.org
Subject: FreeBSD 5/PAM: incorrect handling of space symbols at the end of password
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48648
>Category:       bin
>Synopsis:       FreeBSD 5/PAM: incorrect handling of space symbols at the end of password
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 24 14:10:06 PST 2003
>Closed-Date:    Mon Jan 26 23:11:39 PST 2004
>Last-Modified:  Mon Jan 26 23:11:39 PST 2004
>Originator:     Nick Leuta
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Lipetsk State Technical University
>Environment:
System: FreeBSD skynick.stu.lipetsk.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Feb 24 12:54:10 MSK 2003 root@skynick.stu.lipetsk.ru:/usr/src/sys/i386/compile/GENERIC i386
>Description:
Spaces at the end of the password like "password " are ignored, and only
"password" is in use. It's actual only for FreeBSD 5, FreeBSD 4 isn't affected
by this problem. So some accounts may become unusable after migration from 4.x
systems, or if the password will be set without help of PAM-aware tools.
>How-To-Repeat:
1. Use `passwd' command and enter something like "password " after
'New password:' prompt (without `"', of course :-) ).
2. Now `login' utility allows to login with both "password " (with one or more
spaces at the end) and "password" passwords, but `telnetd' and `ftpd' daemons
honor entered passwords, so only "password" may be used.
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 23:03:29 PDT 2003 
Responsible-Changed-Why:  
Assign to PAM maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48648 

From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/48648 
Date: Tue, 19 Aug 2003 13:52:13 +0200

 PAM's default conversation function trims whitespace from the end of
 the line entered by the user.  I would recommend avoiding spaces in
 passwords.
 
 DES
 --=20
 Dag-Erling Sm=F8rgrav - des@des.no

From: "Nick Leuta" <skynick@stu.lipetsk.ru>
To: <freebsd-gnats-submit@FreeBSD.org>, <skynick@stu.lipetsk.ru>
Cc:  
Subject: Re: bin/48648: FreeBSD 5/PAM: incorrect handling of space symbols at the end of password
Date: Thu, 27 Nov 2003 17:49:09 +0300

 Avoiding spaces in  passwords may be used as a workaround, but not as a
 solution. Such passwords work in FreeBSD 2.x/3.x/4.x, in Linux, in
 Windows... And they don't work in FreeBSD 5.
 
 Also, it may be a problem in case of migration from 4.x to 5.x. But if
 somebody knows a way to check 300-500 password hashes for spaces at the end
 of password...
 
 =======
 SkyNick
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Mon Jan 26 23:11:37 PST 2004 
State-Changed-Why:  
fixed last december, thanks. 

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