Bug 23537

Summary: Post 4.2 RELEASE errata problem about password_format problem and libdescrypt
Product: Base System Reporter: akenaton <akenaton>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   

Description akenaton 2000-12-14 02:40:00 UTC
crypt_get_format() return des everytime ... 
and it's the same if I put :passwd_format=md5:\ in login.conf.

So it seems I have the inverse problem of the errata for 4.2.

(Using crypt_set_format("md5"); works so I can generate md5 password ...) but doesn't seems to be my default.
,
Something strange if I run ls /usr/lib/libcrypt.so
lrwxrwxrwx  1 root  wheel  - 14 Nov 23 20:02 /usr/lib/libcrypt.so@ -> libdescrypt.so

Why is this file is linked to des, if 4.2 is md5 enable by default ??

Handbooks says:
If you have installed the DES-capable crypt library libdescrypt (e.g. by installing the "crypto" distribution), then which password format will be used for new passwords is controlled by the ``passwd_format'' login
capability in /etc/login.conf, which takes values of either ``des'' or ``md5''. See the login.conf(5) manpage for more information about login capabilities.

This doesn't works.

Fix: 

none except  manually link to the others libraries .
How-To-Repeat: Just install with crypto to have ssh...

This bug seems to be a problem in installation, choosing crypto at install
seems to link libdescrypt by default (this was normal in old freebsd installation but shouldn't now) , which is not said when installing, and breaks all the mechanism
gived by login.conf to switch to another crypt mode.
Comment 1 dd freebsd_committer freebsd_triage 2001-09-06 14:10:56 UTC
State Changed
From-To: open->feedback

This seems to be fixed in more recent releases.  Can you confirm?
Comment 2 ashp freebsd_committer freebsd_triage 2002-01-16 22:42:58 UTC
State Changed
From-To: feedback->closed

Reported fixed, and no feedback in months.