| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> | ||||
| 3 | <keywords> | ||||
| 4 | IMAP | ||||
| 5 | SASL | ||||
| 6 | SASL AUTH PLAIN | ||||
| 7 | RFC4616 | ||||
| 8 | </keywords> | ||||
| 9 | </info> | ||||
| 10 | |||||
| 11 | # | ||||
| 12 | # Server-side | ||||
| 13 | <reply> | ||||
| 14 | <servercmd> | ||||
| 15 | AUTH PLAIN | ||||
| 16 | REPLY AUTHENTICATE + | ||||
| 17 | REPLY AHVzZXIAc2VjcmV0 A002 OK AUTHENTICATE completed | ||||
| 18 | </servercmd> | ||||
| 19 | <data> | ||||
| 20 | From: me@somewhere | ||||
| 21 | To: fake@nowhere | ||||
| 22 | |||||
| 23 | body | ||||
| 24 | |||||
| 25 | -- | ||||
| 26 | yours sincerely | ||||
| 27 | </data> | ||||
| 28 | </reply> | ||||
| 29 | |||||
| 30 | # | ||||
| 31 | # Client-side | ||||
| 32 | <client> | ||||
| 33 | <server> | ||||
| 34 | imap | ||||
| 35 | </server> | ||||
| 36 | <name> | ||||
| 37 | IMAP plain authentication | ||||
| 38 | </name> | ||||
| 39 | <command> | ||||
| 40 | 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret | ||||
| 41 | </command> | ||||
| 42 | </client> | ||||
| 43 | |||||
| 44 | # | ||||
| 45 | # Verify data after the test has been "shot" | ||||
| 46 | <verify> | ||||
| 47 | <protocol> | ||||
| 48 | A001 CAPABILITY | ||||
| 49 | A002 AUTHENTICATE PLAIN | ||||
| 50 | AHVzZXIAc2VjcmV0 | ||||
| 51 | A003 SELECT %TESTNUMBER | ||||
| 52 | A004 FETCH 1 BODY[] | ||||
| 53 | A005 LOGOUT | ||||
| 54 | </protocol> | ||||
| 55 | </verify> | ||||
| 56 | </testcase> | ||||