Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2004 09:04:14 +0100 (CET)
From:      Christian Kratzer <ck-lists@cksoft.de>
To:        Ivan Voras <ivoras@fer.hr>
Cc:        current@freebsd.org
Subject:   Re: Passwd format?
Message-ID:  <20041114090240.S58652@vesihiisi.cksoft.de>
In-Reply-To: <4196440A.7050706@fer.hr>
References:  <4196398D.2030000@fer.hr> <32180.1100365616@critter.freebsd.dk> <4196440A.7050706@fer.hr>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041114090240.S58652>