Bug 32092

Summary: crypt pickups the wrong password format
Product: Base System Reporter: pccb <pccb>
Component: binAssignee: Mark Murray <markm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description pccb 2001-11-18 22:20:00 UTC
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
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-13 02:24:53 UTC
Responsible Changed
From-To: freebsd-bugs->markm

This is mark's area
Comment 2 Mark Murray freebsd_committer freebsd_triage 2003-07-13 09:36:41 UTC
State Changed
From-To: open->closed

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.