Autor: Thomas Stein Data: Para: exim-users Assunto: Re: [exim] Unable to authenticate at present (set_id=username):
missing or misplaced { or }
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. Even the vi function where vi "looks" for matching brackets
does not complain.
Am 04.01.16 um 13:26 schrieb Yves: > Hi Thomas, and happy new year :-)
And the same to you. :-)
> I don't know Exim all that much, and its language's syntax not at all.
> But this error you get, makes me think it may be a quoting issue, just
> like if you write [ -n $foo ] instead of [ -n "$foo" ] in bash.
Thanks for your answer. Although i'm not sure where to put them. :-)