diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-02-10 14:25:43 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-02-10 14:25:43 +0000 |
commit | f78eb7c6264c5f1a4ec2fb24c39060e0686f7714 (patch) | |
tree | c203285c5e61555dfd8cebc4ed1110cf34349a11 /test | |
parent | 727071f81598850285bc4f6270a5bd9ad40c61ba (diff) |
Add $auth1, $auth2, $auth3 variables.
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0002 | 2 | ||||
-rw-r--r-- | test/confs/3400 | 22 | ||||
-rw-r--r-- | test/confs/3500 | 8 | ||||
-rw-r--r-- | test/confs/3600 | 1 | ||||
-rw-r--r-- | test/confs/9300 | 4 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0002 | 16 | ||||
-rw-r--r-- | test/stderr/3400 | 3 | ||||
-rw-r--r-- | test/stderr/3408 | 3 | ||||
-rw-r--r-- | test/stderr/3410 | 8 | ||||
-rw-r--r-- | test/stderr/3500 | 2 | ||||
-rw-r--r-- | test/stdout/0002 | 4 |
11 files changed, 54 insertions, 19 deletions
diff --git a/test/confs/0002 b/test/confs/0002 index 6f02fafa7..8662e54d0 100644 --- a/test/confs/0002 +++ b/test/confs/0002 @@ -14,7 +14,7 @@ gecos_name = CALLER_NAME # ----- Main settings ----- -domainlist dlist = *.aa.bb : ^\Nxxx +domainlist dlist = *.aa.bb : ^\Nxxx(.*) hostlist hlist = V4NET.11.12.13 : iplsearch;DIR/aux-fixed/0002.iplsearch headers_charset = iso-8859-8 diff --git a/test/confs/3400 b/test/confs/3400 index 61dc5a590..b84ee56c4 100644 --- a/test/confs/3400 +++ b/test/confs/3400 @@ -85,46 +85,46 @@ plain: driver = plaintext public_name = PLAIN server_condition = "\ - ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" - server_set_id = $2 + ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}" + server_set_id = $auth2 extended_plain: driver = plaintext public_name = EXPLAIN server_prompts = : server_condition = "\ - ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" - server_set_id = $2 + ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}" + server_set_id = $auth2 expanded_prompt_plain: driver = plaintext public_name = EXPANDED server_prompts = $primary_hostname server_condition = "\ - ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" - server_set_id = $2 + ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}" + server_set_id = $auth2 expanded_prompt_plain_fail: driver = plaintext public_name = EXPANDFAIL server_prompts = $nonexistent server_condition = "\ - ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" - server_set_id = $2 + ${if and {{eq{$auth2}{userx}}{eq{$auth3}{secret}}}{yes}{no}}" + server_set_id = $auth2 defer: driver = plaintext public_name = DEFER server_condition = "account suspended" - server_set_id = $2 + server_set_id = $auth2 login: driver = plaintext public_name = LOGIN server_prompts = "User Name : Password " server_condition = "\ - ${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}" - server_set_id = $1 + ${if and {{eq{$auth1}{userx}}{eq{$auth2}{secret}}}{yes}{no}}" + server_set_id = $auth1 # ----- Routers ----- diff --git a/test/confs/3500 b/test/confs/3500 index 999cd5673..b83b1c33f 100644 --- a/test/confs/3500 +++ b/test/confs/3500 @@ -76,10 +76,10 @@ begin authenticators cram_md5: driver = cram_md5 public_name = CRAM-MD5 - server_debug_print = +++CRAM-MD5 \$1="$1" \$2=\"$2" \$3="$3" - server_secret = "${if eq{$1}{tim}{tanstaaftanstaaf}\ - {${if eq{$1}{userx}{secret}fail}}}" - server_set_id = $1 + server_debug_print = +++CRAM-MD5 \$auth1="$auth1" \$auth2=\"$auth2" \$auth3="$auth3" + server_secret = "${if eq{$auth1}{tim}{tanstaaftanstaaf}\ + {${if eq{$auth1}{userx}{secret}fail}}}" + server_set_id = $auth1 diff --git a/test/confs/3600 b/test/confs/3600 index 5550c3b11..c70fa19d7 100644 --- a/test/confs/3600 +++ b/test/confs/3600 @@ -45,6 +45,7 @@ spa: public_name = NTLM client_password = $sender_address client_username = username + server_debug_print = +++SPA \$auth1="$auth1" server_password = ok@test.ex diff --git a/test/confs/9300 b/test/confs/9300 index 8f413c0f2..91365047f 100644 --- a/test/confs/9300 +++ b/test/confs/9300 @@ -21,11 +21,11 @@ begin authenticators sasl1: driver = cyrus_sasl public_name = ANONYMOUS - server_set_id = $1 + server_set_id = $auth1 sasl2: driver = cyrus_sasl public_name = PLAIN - server_set_id = $1 + server_set_id = $auth1 # End diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index eaa0dd82a..f869c6da4 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -269,6 +269,22 @@ match_domain: ${if match_domain{5.aa.bb}{+dlist}{yes}{no}} match_domain: ${if match_domain{xxxyz}{+dlist}{yes}{no}} match_domain: ${if match_domain{xyz}{+dlist}{yes}{no}} +${if match{x@zz.aa.bb}{^(.*)} \ + { \ + >$1< \ + ${if match_domain{${domain:$1}}{+dlist}{[$1]}} \ + >$1< \ + } \ + { CAN'T HAPPEN}} + +${if match{x@xxxabc}{^(.*)} \ + { \ + >$1< \ + ${if match_domain{${domain:$1}}{^\Nxxx(.*)\N}{[$1]}} \ + >$1< \ + } \ + { CAN'T HAPPEN}} + match_address: ${if match_address{x@y.z}{p@q:*@y.z}{yes}{no}} match_address: ${if match_address{x@y.z}{p@q:x@*.z}{yes}{no}} diff --git a/test/stderr/3400 b/test/stderr/3400 index 16b12b26c..fb3b9895b 100644 --- a/test/stderr/3400 +++ b/test/stderr/3400 @@ -109,6 +109,7 @@ LOG: H=(test.host) [10.0.0.1] rejected ETRN abcd: authentication required >>> deny: condition test succeeded LOG: H=(test.host) [10.0.0.1] F=<junk@jink.jonk.test.ex> rejected RCPT <userx@test.ex>: authentication required >>> mylogin authenticator: +>>> $auth1 = userx secret >>> $1 = userx secret >>> +++MYLOGIN $1="userx secret" $2="" $3="" >>> expanded string: yes @@ -273,6 +274,7 @@ LOG: H=(test.host) [10.0.0.1] Warning: accepted ETRN #abcd >>> accept: endpass encountered - denying access LOG: H=(test.host) [10.0.0.3] F=<junk@jink.jonk.test.ex> rejected RCPT <userx@cus.cam.ac.uk>: authentication required >>> mylogin authenticator: +>>> $auth1 = userx secret >>> $1 = userx secret >>> +++MYLOGIN $1="userx secret" $2="" $3="" >>> expanded string: yes @@ -367,6 +369,7 @@ SMTP>> 250-myhost.test.ex Hello CALLER at testing.testing [10.0.0.5] 250 HELP
SMTP<< auth mylogin dXNlcnggc2VjcmV0 mylogin authenticator: + $auth1 = userx secret $1 = userx secret +++MYLOGIN $1="userx secret" $2="" $3="" expanded string: yes diff --git a/test/stderr/3408 b/test/stderr/3408 index 0ce50f216..a5e576f43 100644 --- a/test/stderr/3408 +++ b/test/stderr/3408 @@ -51,6 +51,9 @@ LOG: 10HmaX-0005vi-00 <= postmaster@exim.test.ex H=(exim.test.ex) [V4NET.11.12.1 >>> host in pipelining_advertise_hosts? yes (matched "*") >>> host in auth_advertise_hosts? yes (matched "*") >>> plain authenticator: +>>> $auth1 = +>>> $auth2 = userx +>>> $auth3 = secret >>> $1 = >>> $2 = userx >>> $3 = secret diff --git a/test/stderr/3410 b/test/stderr/3410 index 02dc1343c..b7cdcf399 100644 --- a/test/stderr/3410 +++ b/test/stderr/3410 @@ -16,6 +16,9 @@ LOG: H=[5.6.9.1] F=<x@y> rejected RCPT <x@y>: You must authenticate >>> host in pipelining_advertise_hosts? yes (matched "*") >>> host in auth_advertise_hosts? yes (matched "*") >>> auth1 authenticator: +>>> $auth1 = +>>> $auth2 = userx +>>> $auth3 = secret >>> $1 = >>> $2 = userx >>> $3 = secret @@ -43,6 +46,9 @@ LOG: H=[5.6.10.1] F=<x@y> rejected RCPT <x@y> >>> host in pipelining_advertise_hosts? yes (matched "*") >>> host in auth_advertise_hosts? yes (matched "*") >>> auth1 authenticator: +>>> $auth1 = +>>> $auth2 = userx +>>> $auth3 = secret >>> $1 = >>> $2 = userx >>> $3 = secret @@ -64,6 +70,8 @@ LOG: H=[5.6.10.1] F=<x@y> rejected RCPT <x@y> >>> host in pipelining_advertise_hosts? yes (matched "*") >>> host in auth_advertise_hosts? yes (matched "*") >>> auth2 authenticator: +>>> $auth1 = userx +>>> $auth2 = secret >>> $1 = userx >>> $2 = secret >>> expanded string: yes diff --git a/test/stderr/3500 b/test/stderr/3500 index fc3637f33..b0432c58c 100644 --- a/test/stderr/3500 +++ b/test/stderr/3500 @@ -23,7 +23,7 @@ >>> host in pipelining_advertise_hosts? yes (matched "*") >>> host in "10.0.0.1"? yes (matched "10.0.0.1") >>> host in auth_advertise_hosts? yes (matched "+auth_hosts") ->>> +++CRAM-MD5 $1="tim" $2="" $3="" +>>> +++CRAM-MD5 $auth1="tim" $auth2="" $auth3="" >>> CRAM-MD5: user name = tim >>> challenge = <1896.697170952@postoffice.reston.mci.net> >>> received = b913a602c7eda7a495b4e6e7334d3890 diff --git a/test/stdout/0002 b/test/stdout/0002 index b2e86b2a6..4d87e0acc 100644 --- a/test/stdout/0002 +++ b/test/stdout/0002 @@ -250,6 +250,10 @@ > match_domain: yes > match_domain: no > +> >x@zz.aa.bb< [] >x@zz.aa.bb< +> +> >x@xxxabc< [] >x@xxxabc< +> > match_address: yes > match_address: yes > |