From nobody@FreeBSD.org  Sun Nov 18 14:17:08 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 15F3137B416
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Nov 2001 14:17:08 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fAIMH8q95133;
	Sun, 18 Nov 2001 14:17:08 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111182217.fAIMH8q95133@freefall.freebsd.org>
Date: Sun, 18 Nov 2001 14:17:08 -0800 (PST)
From: Peter Chiu <pccb@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: crypt pickups the wrong password format
X-Send-Pr-Version: www-1.0

>Number:         32092
>Category:       bin
>Synopsis:       crypt pickups the wrong password format
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    markm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 18 14:20:00 PST 2001
>Closed-Date:    Sun Jul 13 01:37:56 PDT 2003
>Last-Modified:  Sun Jul 13 01:37:56 PDT 2003
>Originator:     Peter Chiu
>Release:        4.4-stable
>Organization:
>Environment:
FreeBSD zeus.objtech.com 4.4-STABLE FreeBSD 4.4-STABLE #16: Mon Oct 22 02:53:56 EDT 2001     root@zeus.objtech.com:/usr/obj/usr/src/sys/ZEUS  i386
>Description:
crypt should picks up the password format from /etc/auth.conf
It works while 
crypt_default   =       md5

However, if I use
crypt_default   =       md5 des

it generates a des password format which I don't think it is correct.
>How-To-Repeat:
Put 
crypt_default   =       md5 des
in /etc/auth.conf and run adduser


>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->markm 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 18:24:53 PDT 2003 
Responsible-Changed-Why:  
This is mark's area 

http://www.freebsd.org/cgi/query-pr.cgi?pr=32092 
State-Changed-From-To: open->closed 
State-Changed-By: markm 
State-Changed-When: Sun Jul 13 01:36:41 PDT 2003 
State-Changed-Why:  
A default is a _single_ default. In your case, the last specified crypt(3) format was DES, so it took that. Specifying 2 defaults makes no sense. 

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