From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6414 invoked from network); 18 Aug 2003 08:55:15 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 18 Aug 2003 08:55:15 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ofl7-0007Uk-KZ for listarch-gnats-devel@sources.redhat.com; Mon, 18 Aug 2003 04:53:01 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ofl0-0007Uc-Dy for help-gnats@gnu.org; Mon, 18 Aug 2003 04:52:54 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ofkU-0007LP-IV for help-gnats@gnu.org; Mon, 18 Aug 2003 04:52:53 -0400 Received: from [62.24.64.14] (helo=ms2.dkm.cz) by monty-python.gnu.org with smtp (Exim 4.20) id 19ofkT-0007Kv-O0 for help-gnats@gnu.org; Mon, 18 Aug 2003 04:52:21 -0400 Received: (qmail 79569 invoked by uid 0); 18 Aug 2003 08:52:18 -0000 Received: from d232.brno.mistral.cz (HELO blackbird) (62.245.99.232) by ms2.dkm.cz with SMTP; 18 Aug 2003 08:52:18 -0000 Received: from pdm by blackbird with local (Exim 3.36 #1 (Debian)) id 19ofkP-0005fZ-00; Mon, 18 Aug 2003 10:52:17 +0200 To: "Brad Wyman" References: <44961F3EEDA8F74CBD288A0ABF69BA2518F91E@burdette-srv.burdettemedical.com> From: Milan Zamazal X-Face: >kl&pL}(a*u\BCj7Q, \Yoq35~, 4dAu"CPGaJ[ahMli9uu#aF7dWxc3L.eaK2RWRU|', E+. -':&gJ-JAZ/N$f^4-3?G7M&Knna[A=lJ$}^!%@vuvulVl6-)x.V8RZ7fW9< Date: Wed, 20 Aug 2003 09:23:00 -0000 In-Reply-To: <44961F3EEDA8F74CBD288A0ABF69BA2518F91E@burdette-srv.burdettemedical.com> (Brad Wyman's message of "Fri, 8 Aug 2003 12:04:52 -0500") Message-ID: <877k5bl54v.fsf@zamazal.org> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: help-gnats@gnu.org Subject: Re: Encryption for gnatsd.user_access file X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2003-q3/txt/msg00030.txt.bz2 >>>>> "BW" == Brad Wyman writes: BW> I'm following the manual in that I type: BW> perl -e 'use Crypt::PasswdMD5 ; print BW> Crypt::PasswdMD5::unix_md5_crypt "abc123" , time() % 100000000' BW> It returns a string which I then add to the gnatsd.user_access BW> file such as: BW> brad:$1$THESTRINGHERE:edit BW> This however does not work as I am denied access. If I use: BW> brad:$0$abc123:edit BW> everything works. BW> I couple of specific things baffle me: 1) every time I run the BW> perl script I get a different string. This because you use a different seed each time, based on the current time. BW> 2) The example in the manual shows an entry of the format: BW> rickm:$1$92388623$D7ZIYikzTUqd./d0DTFrI.:edit BW> What is the numerical string between the two "$"? BW> i.e. $92388623$ It should be the salt. BW> Do I need to specify a particular seed to associate with my MD5 BW> password? No, you can use any seed. I believe (haven't checked) the following is correct, if such a password doesn't work and your operating system supports MD5 encryption, it might be a GNATS bug. $ python -c 'import crypt; print crypt.crypt("abc123","$1$somesalt")' $1$somesalt$cQgXrA5ywA0FFcScneVRH1 Regards, Milan Zamazal -- real programmer? don't get me started. if you need to hide your pathetic excuse for a carreer behind super-macho languages like C, C++, and/or Perl instead of writing clean, maintainable, efficient code, you aren't much of a real programmer in my view. -- Erik Naggum in comp.emacs _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats