From owner-freebsd-current@FreeBSD.ORG Sun Nov 14 08:04:20 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 A87D216A4CE for ; Sun, 14 Nov 2004 08:04:20 +0000 (GMT) Received: from ns2.cksoft.de (mx21.cksoft.de [217.115.158.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC2A643D2D for ; Sun, 14 Nov 2004 08:04:19 +0000 (GMT) (envelope-from ck-lists@cksoft.de) Received: from vesihiisi.cksoft.de (unknown [192.168.64.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ns2.cksoft.de (Postfix) with ESMTP id DB9F42A461; Sun, 14 Nov 2004 09:04:17 +0100 (CET) Received: from vesihiisi.cksoft.de (localhost [127.0.0.1]) by vesihiisi.cksoft.de (Postfix) with ESMTP id 379FD1EBD; Sun, 14 Nov 2004 09:04:17 +0100 (CET) Received: by vesihiisi.cksoft.de (Postfix, from userid 1000) id 97F491EBC; Sun, 14 Nov 2004 09:04:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by vesihiisi.cksoft.de (Postfix) with ESMTP id 909C51EB0; Sun, 14 Nov 2004 09:04:14 +0100 (CET) Date: Sun, 14 Nov 2004 09:04:14 +0100 (CET) From: Christian Kratzer X-X-Sender: ck@vesihiisi.cksoft.de To: Ivan Voras In-Reply-To: <4196440A.7050706@fer.hr> Message-ID: <20041114090240.S58652@vesihiisi.cksoft.de> References: <4196398D.2030000@fer.hr> <32180.1100365616@critter.freebsd.dk> <4196440A.7050706@fer.hr> X-Spammer-Kill-Ratio: 75% MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on vesihiisi.cksoft.de cc: current@freebsd.org Subject: Re: Passwd format? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Christian Kratzer List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 08:04:20 -0000 Hi, On Sat, 13 Nov 2004, Ivan Voras wrote: > 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 :( openldap handles md5 password hashes out of the box. See the slapd.conf man page for details. Greetings Christian -- Christian Kratzer ck@cksoft.de CK Software GmbH http://www.cksoft.de/ Phone: +49 7452 889 135 Fax: +49 7452 889 136