Date: Sun, 14 Nov 2004 14:25:33 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Ivan Voras <ivoras@fer.hr> Cc: current@freebsd.org Subject: Re: Passwd format? Message-ID: <20041114222533.GA17027@xor.obsecurity.org> In-Reply-To: <4196398D.2030000@fer.hr> References: <4196398D.2030000@fer.hr>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041114222533.GA17027>