[Pkg-exim4-users] cram_md5 authentication between exim3 and exim4

Andreas Metzler ametzler@downhill.at.eu.org
Wed Jul 13 16:36:56 UTC 2005


On 2005-07-13 Norbert Preining <preining@logic.at> wrote:
> I have a question concerning exim and cram-md5 authentication:
> 
> We have a server running exim3 (debian woody) and the following entry in
> the config file
> # AUTHENTICATION CONFIGURATION
> cram:
>   driver = cram_md5
>   public_name = CRAM-MD5
>   server_secret = ${lookup{*}lsearch{/etc/exim/clientpasswd}{$1}fail}
>   server_set_id = $1
> 
> and the corresponding /etc/exim/clientpasswd file:
> gandalf:foobar
 
That is broken. You are looking up a literal "*" in clientpasswd and
returning $1 on success. You need to lookup the given username (as
present in variable $1) and return the value keyed to this entry instead.

This might do what you want to:
cram:
  driver = cram_md5
  public_name = CRAM-MD5
  server_secret = ${lookup{$1}lsearch{/etc/exim/clientpasswd}{value}fail}
  server_set_id = $1

            cu and- Finnish sun makes me slow -reas




More information about the Pkg-exim4-users mailing list