*BSD News Article 88719


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!www.nntp.primenet.com!nntp.primenet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!howland.erols.net!math.ohio-state.edu!jussieu.fr!eurocontrol.fr!polaris.eurocontrol.fr!not-for-mail
From: roberto@eurocontrol.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: DES passwd crypt support requited for tacacs+ authentication
Date: 7 Feb 1997 16:25:07 GMT
Organization: Eurocontrol EEC, Bretigny, France
Lines: 22
Message-ID: <5dfl13$pkh$4@polaris.eurocontrol.fr>
References: <32f423b5.132715158@198.235.216.4> <5d4bhm$hbe$4@polaris.eurocontrol.fr> <32f79582.161893@news.easynet.co.uk>
NNTP-Posting-Host: caerdonn.eurocontrol.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsposter: Pnews 4.0-test53 (3 Feb 97)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35213

    [courtesy cc of this posting sent to cited author via email]

In article <32f79582.161893@news.easynet.co.uk>,
Neil Levine <levine@yoyo.org> wrote:
> know MD5 prefaces all output with $1$, and therefore assumed the salt
> was the 4th and 5th characters accordingly but when I use the crypt
> function with these as the salt it doesn't produce output that matches
> the crypted passwords in the passwd file.

Did you linked the binary with '-lcrypt' ? See into /usr/lib, libcrypt
should point so libscrypt if you're using the MD5 libs and to libdescrypt
if not.

The MD5 format is :
- $1$           as signature, future systems will use $2$, $3$ and so on
- upto 8 chars  the salt
- $
- MD5 of password.

-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TS -=-   Ollivier.Robert@eurocontrol.fr
FreeBSD FAQ: <URL:http://www.FreeBSD.org/FAQ/>