X-Git-Url: https://git.hcoop.net/hcoop/zz_old/config/exim4-hopper.git/blobdiff_plain/b9924679c5aa8caee9a1c4ff3ded61aecfa9fbc0..8ebdbbac25c9115d1a10f445ff36339a81ab334b:/conf.d/auth/30_exim4-config_examples?pf=hcoop%2Fzz_old diff --git a/conf.d/auth/30_exim4-config_examples b/conf.d/auth/30_exim4-config_examples index f844199..cf1bbeb 100644 --- a/conf.d/auth/30_exim4-config_examples +++ b/conf.d/auth/30_exim4-config_examples @@ -210,36 +210,30 @@ cram_md5: client_name = ${extract{1}{:}{${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}} client_secret = ${extract{2}{:}{${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$value}fail}}} -# hcoop-change: Authenticate against /etc/courier/userdb.dat for plain -# and login authenticators +# hcoop-change: Authenticate against either /etc/courier/exim.dat or +# SASL for plain and login authenticators -userdb_plain: +hcoop_plain: driver = plaintext public_name = PLAIN server_condition = \ - ${if \ - crypteq {$3} \ - {${extract{systempw}{${tr{${lookup{$2} \ - dbm{/etc/courier/userdb.dat} \ - }}{|}{ }}}}} \ - {yes} \ - {no} \ - } + ${if or {{crypteq {$3} \ + {${extract{systempw}{${tr{${lookup{$2} \ + dbm{/etc/courier/exim.dat} \ + }}{|}{ }}}}}} \ + {saslauthd {{$2}{$3}}}}} server_set_id = $2 -userdb_login: +hcoop_login: driver = plaintext public_name = LOGIN server_prompts = "Username:: : Password::" server_condition = \ - ${if \ - crypteq {$2} \ - {${extract{systempw}{${tr{${lookup{$1} \ - dbm{/etc/courier/userdb.dat} \ - }}{|}{ }}}}} \ - {yes} \ - {no} \ - } + ${if or {{crypteq {$2} \ + {${extract{systempw}{${tr{${lookup{$1} \ + dbm{/etc/courier/exim.dat} \ + }}{|}{ }}}}}} \ + {saslauthd {{$1}{$2}}}}} server_set_id = $1 # this returns the matching line from passwd.client and doubles all ^