From owner-freebsd-current@FreeBSD.ORG Sun Nov 14 22:22:49 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 4CA1416A4D0 for ; Sun, 14 Nov 2004 22:22:49 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18D8243D2D for ; Sun, 14 Nov 2004 22:22:49 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5EF03511D3; Sun, 14 Nov 2004 14:25:33 -0800 (PST) Date: Sun, 14 Nov 2004 14:25:33 -0800 From: Kris Kennaway To: Ivan Voras Message-ID: <20041114222533.GA17027@xor.obsecurity.org> References: <4196398D.2030000@fer.hr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <4196398D.2030000@fer.hr> User-Agent: Mutt/1.4.2.1i cc: current@freebsd.org 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: Sun, 14 Nov 2004 22:22:49 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 13, 2004 at 05:42:53PM +0100, Ivan Voras wrote: > The Handbook and crypt(3) say passwords in master.passwd are MD5 hashes= =20 > if they start with $1$, for example: >=20 > $1$DP.s8oCc$VJo0/026/S5ng6HlD1Sz8/ >=20 > the format is $1$salt$rest. I have several questions: >=20 > How are the values encoded? This looks something like base64. >=20 > Is it possible to actually verify the password against this format using= =20 > only a bare implementation of the md5 algorithm? >=20 > Actually, the reason for these questions is that I'm considering using=20 > LDAP authentication on a machine with lots of users and I'm wondering if= =20 > existing passwd information could be transported to LDAP. Any=20 > experiences/docs on this? man 3 crypt, or see the source code Kris --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBl9tdWry0BWjoQKURAp5KAJ9G252dF9rGh3WYPAnOBOtigubfBgCgq8ql D+q6F+fMikWEbqwR2mEafoE= =Tlsz -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--