From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 16:43:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2CC016A4CE for ; Sat, 13 Nov 2004 16:43:05 +0000 (GMT) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC45B43D2D for ; Sat, 13 Nov 2004 16:43:04 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.1/8.13.1) with ESMTP id iADGgrUZ098584 for ; Sat, 13 Nov 2004 17:42:53 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <4196398D.2030000@fer.hr> Date: Sat, 13 Nov 2004 17:42:53 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.9 (X11/20041111) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Passwd format? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2004 16:43:05 -0000 The Handbook and crypt(3) say passwords in master.passwd are MD5 hashes if they start with $1$, for example: $1$DP.s8oCc$VJo0/026/S5ng6HlD1Sz8/ the format is $1$salt$rest. I have several questions: How are the values encoded? This looks something like base64. Is it possible to actually verify the password against this format using only a bare implementation of the md5 algorithm? Actually, the reason for these questions is that I'm considering using LDAP authentication on a machine with lots of users and I'm wondering if existing passwd information could be transported to LDAP. Any experiences/docs on this? Thanks!