lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | IMAP |
| 5 | SASL |
| 6 | SASL AUTH CRAM-MD5 |
| 7 | SASL CANCELLATION |
| 8 | RFC2195 |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <servercmd> |
| 16 | AUTH CRAM-MD5 |
| 17 | CAPA LOGINDISABLED |
| 18 | REPLY AUTHENTICATE + Rubbish |
| 19 | REPLY * A002 NO AUTH exchange cancelled by client |
| 20 | </servercmd> |
| 21 | </reply> |
| 22 | |
| 23 | # |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | imap |
| 28 | </server> |
| 29 | <features> |
| 30 | crypto |
| 31 | </features> |
| 32 | <name> |
| 33 | IMAP CRAM-MD5 graceful cancellation |
| 34 | </name> |
| 35 | <command> |
| 36 | 'imap://%HOSTIP:%IMAPPORT/830/;UID=1' -u user:secret |
| 37 | </command> |
| 38 | </client> |
| 39 | |
| 40 | # |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | # 67 - CURLE_LOGIN_DENIED |
| 44 | <errorcode> |
| 45 | 67 |
| 46 | </errorcode> |
| 47 | # |
| 48 | # The multi interface considers a broken "CONNECT" as a prematurely broken |
| 49 | # transfer and such a connection will not get a "LOGOUT" |
| 50 | <protocol> |
| 51 | A001 CAPABILITY
|
| 52 | A002 AUTHENTICATE CRAM-MD5
|
| 53 | *
|
| 54 | </protocol> |
| 55 | </verify> |
| 56 | </testcase> |