From owner-freebsd-questions Fri Nov 3 4:58:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by hub.freebsd.org (Postfix) with ESMTP id 1B41237B4C5 for ; Fri, 3 Nov 2000 04:58:14 -0800 (PST) Received: from fogerty.lmf.ericsson.se (fogerty.lmf.ericsson.se [131.160.11.6]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with ESMTP id eA3CwBt16051 for ; Fri, 3 Nov 2000 13:58:11 +0100 (MET) Received: from ws125.nomadiclab.com (mungo.lmf.ericsson.se [131.160.32.8]) by fogerty.lmf.ericsson.se (8.9.3+Sun/8.9.3) with ESMTP id OAA02012 for ; Fri, 3 Nov 2000 14:58:08 +0200 (EET) Date: Fri, 3 Nov 2000 14:58:08 +0200 (EET) From: Martti Kuparinen X-Sender: martti@ws125.nomadiclab.com To: freebsd-questions@freebsd.org Subject: passwd and libcrypt: got MD5 instead of DES 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 Hi! I changed my password on our NIS server (FreeBSD 4.2-BETA) and now my password is MD5 instead of DES. This is not good as we have hosts in our network which don't speak MD5. Here are the libcrypt links: lrwxr-xr-x 1 root wheel 13 Nov 2 14:06 libcrypt.a -> libdescrypt.a lrwxr-xr-x 1 root wheel 14 Nov 2 14:06 libcrypt.so -> libdescrypt.so lrwxr-xr-x 1 root wheel 16 Nov 2 14:06 libcrypt.so.2 -> libdescrypt.so.2 lrwxr-xr-x 1 root wheel 15 Nov 2 14:06 libcrypt_p.a -> libdescrypt_p.a So libcrypt.* are symlinks to the DES variants. This is the output from "ktrace passwd user": 12356 passwd NAMI "/usr/lib/libcrypt.so.2" ... Once again, the passwd command should be using the DES variant of the crypt libraries as expected. No matter what I do, I get this: # passwd user Changing NIS password for user on localhost in domain xxxxx. New password: Retype new password: NIS password has been changed on localhost. # grep ^user /var/yp/master.passwd user:$1$v.Pe7YE9$IQ2fKW5/iYAF8K44FJTmF/:1000:1000::0:0:User Name:/home/user:/bin/bash So the password is MD5 instead of DES! What am I doing wrong? Please CC: me with the answer as I'm not on this list. Thanks in advance, Martti Kuparinen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message