Bug 29787

Summary: cvs pserver will no longer use md5 hashes
Product: Base System Reporter: Rob Simmons <rsimmons>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description Rob Simmons 2001-08-16 23:10:29 UTC
cvs pserver users' passwords are in md5 format.  After update to 4.4-PRERELEASE
users are not able to login.

When I reset the user's passwords into DES format they are able to login again.

cvs pserver used to be aware of md5 hashs due to crypt() now it is not.

Fix: 

Don't know
How-To-Repeat: See above
Comment 1 peter 2001-08-17 03:39:27 UTC
Rob Simmons wrote:

> >Synopsis:       cvs pserver will no longer use md5 hashes

> >Description:
> cvs pserver users' passwords are in md5 format.  After update to 4.4-PRERELEA
    SE
> users are not able to login.
> 
> When I reset the user's passwords into DES format they are able to login agai
    n.
> 
> cvs pserver used to be aware of md5 hashs due to crypt() now it is not.

I just retested this here, it worked for me...

peter@daintree[7:35pm]/home/src.cvs/sys-103> more CVS/Root
:pserver:peter@malaise.yahoo.com:/home/ncvs

root@malaise[7:34pm]/raid/FreeBSD/src_4/lib/libcrypt-58# ls -l /usr/lib/libcrypt.so.2
-r--r--r--  1 root  wheel  28720 Aug 16 19:34 /usr/lib/libcrypt.so.2

root@malaise[7:35pm]/raid/FreeBSD/src_4/lib/libcrypt-59# grep peter /etc/master.passwd 
peter:$1$JQ2M/$eqaqX3GjxhnXXXXXsC3vG/:2154:100::0:0:Peter Wemm:/homes/peter:/usr/local/bin/tcsh

peter@daintree[7:35pm]/home/src.cvs/sys-104> cvs -q up
? i386/conf/DAINTREE
peter@daintree[7:36pm]/home/src.cvs/sys-105> 

How did you upgrade?  Please do a:  ls -l /usr/lib/lib*crypt.so*
and let us know what it looks like...

Or, are you using passwords in the CVSROOT area instead of the system
passwords?

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5
Comment 2 rsimmons 2001-08-17 15:55:41 UTC
> How did you upgrade?  Please do a:  ls -l /usr/lib/lib*crypt.so*
> and let us know what it looks like...

lrwxr-xr-x  1 root  wheel     13 Aug 12 18:57 /usr/lib/libcrypt.so ->
libcrypt.so.2
-r--r--r--  1 root  wheel  28588 Aug 11 15:10 /usr/lib/libcrypt.so.2
lrwxr-xr-x  1 root  wheel     16 Jun 12 14:35 /usr/lib/libdescrypt.so ->
libdescrypt.so.2
-r--r--r--  1 root  wheel  28480 Jun 12 14:35 /usr/lib/libdescrypt.so.2
lrwxr-xr-x  1 root  wheel     14 Jun 12 14:35 /usr/lib/libscrypt.so ->
libscrypt.so.2
-r--r--r--  1 root  wheel  11596 Jun 12 14:35 /usr/lib/libscrypt.so.2

>
> Or, are you using passwords in the CVSROOT area instead of the system
> passwords?

I'm using passwords in the CVSROOT area.  I didn't want to create system
accounts, but I guess I'm going to have to :(
Comment 3 ashp freebsd_committer freebsd_triage 2002-01-18 03:02:51 UTC
State Changed
From-To: open->closed

Peter suggested workarounds for the problem.  This shouldn't be an issue for 
most users, and is not strictly speaking a bug.