Re: [exim] Unable to authenticate at present (set_id=usernam…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Victor Ustugov
Dátum:  
Címzett: Thomas Stein
Tárgy: Re: [exim] Unable to authenticate at present (set_id=username): missing or misplaced { or }
Thomas Stein wrote:

>>>> workaround:
>>>>
>>>> exim -be '${if
>>>> exists{/etc/exim/passwd}{${lookup{eitadmin}lsearch{/etc/exim/passwd}{${if
>>>>
>>>> crypteq{test}{${sg{$value}{\N:.*\N}{}}}{true}{false}}}{${if
>>>
>>> Now the "md5" part is missing. Decoding the password cannot work anymore
>>> right?
>>
>> i have tested MD5 encrypted passwords with salt
>> ($1$dk$HraXz0BPruPQiInDQ.Cvj0 for "test").
>
> After generating the password with: "perl -e 'print crypt("test",
> q($5$salt$)), "\n";'" everything works as expected.
> Thank you Victor.


you are welcome.

any way it is workaround only. your original syntax with ${extract was
correct, so you found a bug in exim.


> cheers
> t.
>
>> feel free to use
>>
>> ${sg{$value}{\N^(\S+?):.*\N}{\{md5\}\$1}}
>>
>> instead of
>>
>> ${sg{$value}{\N:.*\N}{}}
>>
>> but in this case you must use one password scheme for all passwords.
>>
>>> thanks again and best regards
>>> t.
>>>
>>>> pam{eitadmin:${sg{test}{:}{::}}}{true}{false}}}}}{${if
>>>> pam{eitadmin:${sg{test}{:}{::}}}{true}{false}}}}'



-- 
Best wishes Victor Ustugov  mailto:victor@corvax.kiev.ua
public GnuPG/PGP key:       http://victor.corvax.kiev.ua/corvax.asc
ICQ UIN: 371808614          JID: corvax_at_nb@???
nic-handle: CRV-UANIC