From nobody@FreeBSD.org  Thu Apr 15 01:01:45 2004
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 DAA2816A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Apr 2004 01:01:45 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D1B6343D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Apr 2004 01:01:45 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i3F81j72005796
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Apr 2004 01:01:45 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i3F81jkj005795;
	Thu, 15 Apr 2004 01:01:45 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200404150801.i3F81jkj005795@www.freebsd.org>
Date: Thu, 15 Apr 2004 01:01:45 -0700 (PDT)
From: Bernard Buri <bsd@ask-us.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: passwd uses passwd_format of default login class
X-Send-Pr-Version: www-2.3

>Number:         65557
>Category:       bin
>Synopsis:       passwd uses passwd_format of default login class
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 15 01:10:20 PDT 2004
>Closed-Date:    Sat Nov 11 00:22:07 GMT 2006
>Last-Modified:  Sat Nov 11 00:22:07 GMT 2006
>Originator:     Bernard Buri
>Release:        5.2.1-RELEASE-p3
>Organization:
ask!
>Environment:
FreeBSD ***hostname*** 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #6: Fri Mar 26 02:07:00 CET 2004 root@***hostname***:/usr/obj/usr/src/sys/BABYLON  i386

>Description:
Setting up a login class in /etc/login.conf with a different passwd_format than the default class (e.g. blf instead of md5) will work now with the adduser script.
But when the user attempts to change his password via the passwd utility, this will generate an md5 password because it uses the format of the default login class.
>How-To-Repeat:
as root:
edit /etc/login.conf: remove comments from last entry (des_users)
update the database: cap_mkdb -v /etc/login.conf
change your class: chpass -> Class: des_users
change your password: passwd
look a the encoded password: chpass
you can see that the password starts with $1... (md5)
>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Stephen P. Cravey" <clists@gotbrains.org>
To: bsd@ask-us.at
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/65557: passwd uses passwd_format of default login class
Date: Sat, 25 Jun 2005 23:30:25 -0500

 Please check http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/74929 and
 see if that's the same problem that you're having. There's a patch
 there to test as well.
 
 -Stephen

From: "bsd@ask-us.at" <bsd@ask-us.at>
To: bug-followup@FreeBSD.org
Cc: "Stephen P. Cravey" <clists@gotbrains.org>, bsd@ask-us.at
Subject: Re: bin/65557: passwd uses passwd_format of default login class
Date: Mon, 27 Jun 2005 16:29:12 +0200

 Stephen P. Cravey wrote:
 > Please check http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/74929 and
 > see if that's the same problem that you're having. There's a patch
 > there to test as well.
 > 
 > -Stephen
 
 bin/74929 describes exactly the same problem.
 
 please also note that the pw utility
 (mentioned in http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/74929) is 
 not a valid fix because it is available only for root: beeing root, I 
 would not have this problem anyway because I can edit the password table 
 as I like!
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: des 
Responsible-Changed-When: Mon Jul 4 14:26:57 GMT 2005 
Responsible-Changed-Why:  
PAM issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65557 
State-Changed-From-To: open->patched 
State-Changed-By: des 
State-Changed-When: Tue Jul 5 18:47:06 GMT 2005 
State-Changed-Why:  
Fixed in -CURRENT, awaiting MFC. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/65557: commit references a PR
Date: Sat, 11 Nov 2006 00:11:52 +0000 (UTC)

 des         2006-11-11 00:11:36 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_5)
     lib/libpam/modules/pam_unix pam_unix.c 
   Log:
   MFC: Use the correct login class when setting a new password
   
   PR:             65557, 72949
   
   Revision  Changes    Path
   1.49.2.2  +1 -1      src/lib/libpam/modules/pam_unix/pam_unix.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: des 
State-Changed-When: Sat Nov 11 00:22:05 UTC 2006 
State-Changed-Why:  
MFCed 

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