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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Thomas Stein
Datum:  
To: exim-users
Neue Treads: Re: [exim] Unable to authenticate at present (set_id=username): missing or misplaced { or }
Betreff: Re: [exim] Unable to authenticate at present (set_id=username): missing or misplaced { or }
On 2016-01-09 21:55, Victor Ustugov wrote:
> 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.

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