Re: [Exim] eq{} vs crypteq{}

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Tamas TEVESZ
CC: exim-users
Subject: Re: [Exim] eq{} vs crypteq{}
On Sun, 26 Aug 2001, Tamas TEVESZ wrote:

> $ htpasswd -bcd authtab vida ginzeng
> which resulted in an authtab file as:
> vida:p1tMAeZ.nHWNU
>
> sure looks as crypt(3). to me, at least.


Well, it's best to make sure. I ran my crypt() test program, and it does
give p1tMAeZ.nHWNU as the crypted value.

> now i changed the abovementioned condition to be "crypteq" instead of
> "eq", and... authentication failed. (nothing else has been vchanged,
> just "eq" to "crypteq", and the password went crypted).
>
> is there anything i'm not aware of ? does one have to use crypteq
> differently than eq (i dont think... not of what spec says, at
> least)..


It looks as though it should work. Indeed, a simple Exim test does work:

$ exim -be
> ${if crypteq{ginzeng}{p1tMAeZ.nHWNU}{yes}{no}}

yes

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.