From owner-freebsd-questions Sun Mar 29 21:58:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA17378 for freebsd-questions-outgoing; Sun, 29 Mar 1998 21:58:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA17373 for ; Sun, 29 Mar 1998 21:58:47 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id VAA23617; Sun, 29 Mar 1998 21:58:42 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Sun, 29 Mar 1998 21:58:42 -0800 (PST) From: Doug White Reply-To: Doug White To: Philippe Regnauld cc: freebsd-questions@FreeBSD.ORG Subject: Re: mixed DES and MD5 password file In-Reply-To: <19980323101007.43952@deepo.prosa.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 23 Mar 1998, Philippe Regnauld wrote: > Hi people. > > I'm in the process of upgrading a couple of Linux web servers to > FreeBSD. Question is, I'd like to use md5 on the FreeBSD box, > but I'd also like to be able to use the old password files. > > I know this has been brought up before (ways to have crypt() > recognize both formats), but I can't find the exact method > in the archives) -- any help appreciated. This isn't possible, I don't think. In order to use MD5 everything has to be in MD5 format, but the old passwords are in DES. The replacement libcrypt replaces the MD5 crypt() routine with the DES one. You can't decrypt DES very easily, so I think you're stuck with DES unless you can hack the des libs and I'm not sure that's easily done. You'd have to take a look at them. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message