From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 17:27:48 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 36C2E16A4CE for ; Sat, 13 Nov 2004 17:27:48 +0000 (GMT) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E21743D2F for ; Sat, 13 Nov 2004 17:27:47 +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 iADHRc8m098917 for ; Sat, 13 Nov 2004 18:27:38 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <4196440A.7050706@fer.hr> Date: Sat, 13 Nov 2004 18:27:38 +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 References: <4196398D.2030000@fer.hr> <32180.1100365616@critter.freebsd.dk> In-Reply-To: <32180.1100365616@critter.freebsd.dk> 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: Re: 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 17:27:48 -0000 Poul-Henning Kamp wrote: > In message <4196398D.2030000@fer.hr>, Ivan Voras writes: > >>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. > Search for "md5crypt.c" in google and you'll find the source. This looks like it: http://mia.ece.uic.edu/cgi-bin/lxr/http/source/md5crypt.c?v=openssh-3.5p1 It seems it's definitely NOT reusable in LDAP :(