Author: Jeremy Harris Date: To: exim-users Subject: Re: [exim] Unable to authenticate at present (set_id=username):
missing or misplaced { or }
On 04/01/16 12:53, Thomas Stein wrote: > Am 04.01.16 um 13:40 schrieb Jeremy Harris:
>> On 02/01/16 12:14, Thomas Stein wrote:
>>> Wrong user:
>>>
>>> exim # exim -be '${if exists{/etc/exim/passwd}
>>> {${lookup{eitadmin}lsearch{/etc/exim/passwd} {${if crypteq{test}
>>> {\{md5\}${extract{1}{:}{$value}{$value}fail}} {true}{false} }} {${if
>>> pam{eitadmin:${sg{MyPassw0rd}{:}{::}} } {true}{false}} } }} {${if
>>> pam{eitadmin:${sg{MyPassw0rdaaa}{:}{::}} } {true}{false}} }}'
>>> Failed: missing or misplaced { or }
>>
>> Try laying out that with all the matching brackets carefully
>> vertically aligned. Does the layout match the syntax
>> and semantics of each component?
>
> Well, it has to because if i use a user which exists in /etc/exim/passwd
> everything works as expected. But i tried your suggestion anyway. Looks
> good to me.
OK, next add a debug option "-d-all+expand+lookup". This will show the
processing flow of the expansion. Where does it first see a problem?
--
Jeremy