summaryrefslogtreecommitdiff
path: root/test/scripts/3550-dovecot/3551
blob: 9bcb5ce9b041ccf246c1244ce7b36377af52dd87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# dovecot server auth, LOGIN
#
mkdir DIR/tmp
#
background
dovecot -F -c DIR/aux-var/TESTNUM.dovecot.conf
****
sleep 1
#
#
#
### LOGIN/userx/secret
exim -odi -bs -oMa 10.0.0.1
EHLO test.host
AUTH LOGIN
dXNlcng=
c2VjcmV0
MAIL FROM:<userx@cus.cam.ac.uk>
RCPT TO:<userx@test.ex>
DATA
Testing authenticated.
.
quit
****
### ditto, on two lines from client rather than three; fails
###  (not legit; the username & passwd should be suplied separately in response to prompts)
# the Exim "plaintext" authenticator is fine with it, but it's outside what we know of the "specification"
exim -bs -oMa 10.0.0.1
ehlo test.host
AUTH LOGIN
dXNlcngAc2VjcmV0
quit
****
### ditto, on one line; fails
exim -bs -oMa 10.0.0.1
ehlo test.host
AUTH LOGIN dXNlcngAc2VjcmV0
quit
****
### ditto, a different split of two lines; passes (though not strictly within spec)
exim -bs -oMa 10.0.0.1
ehlo test.host
AUTH LOGIN dXNlcng=
c2VjcmV0
quit
****
### LOGIN - cancelled part-way through (returns a fail)
exim -bs -oMa 10.0.0.1
ehlo test.host
AUTH LOGIN
dXNlcng=
*
quit
****
#
#
### LOGIN (empty username; bad auth)   should fail
exim -odi -bs -oMa 10.0.0.1
ehlo test.host
AUTH LOGIN

c2VjcmV0
quit
****
#
### LOGIN (bad username; bad auth)   should fail
exim -odi -bs -oMa 10.0.0.1
ehlo test.host
AUTH LOGIN
DXNlcng=
c2VjcmV0
quit
****
#
#
### Shut down dovecot
killdaemon
#
sudo rm -fr DIR/tmp
no_msglog_check