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:[email protected]
public GnuPG/PGP key: http://victor.corvax.kiev.ua/corvax.asc
ICQ UIN: 371808614 JID: [email protected]
nic-handle: CRV-UANIC
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/