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 NTLM |
| 7 | SASL AUTH PLAIN |
| 8 | SASL DOWNGRADE |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <servercmd> |
| 16 | AUTH NTLM PLAIN |
| 17 | REPLY "AUTHENTICATE NTLM" + |
| 18 | REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish |
| 19 | REPLY * A002 NO AUTH exchange cancelled by client |
| 20 | REPLY "AUTHENTICATE PLAIN" + |
| 21 | REPLY AHVzZXIAc2VjcmV0 A003 OK AUTHENTICATE completed |
| 22 | </servercmd> |
| 23 | <data> |
| 24 | From: me@somewhere
|
| 25 | To: fake@nowhere
|
| 26 |
|
| 27 | body
|
| 28 |
|
| 29 | --
|
| 30 | yours sincerely
|
| 31 | </data> |
| 32 | </reply> |
| 33 | |
| 34 | # |
| 35 | # Client-side |
| 36 | <client> |
| 37 | <server> |
| 38 | imap |
| 39 | </server> |
| 40 | <features> |
| 41 | NTLM |
| 42 | SSL |
| 43 | !SSPI |
| 44 | </features> |
| 45 | <name> |
| 46 | IMAP NTLM authentication with SASL downgrade |
| 47 | </name> |
| 48 | <setenv> |
| 49 | # we force our own host name, in order to make the test machine independent |
| 50 | CURL_GETHOSTNAME=curlhost |
| 51 | # we try to use the LD_PRELOAD hack, if not a debug build |
| 52 | LD_PRELOAD=%PWD/libtest/.libs/libhostname.so |
| 53 | </setenv> |
| 54 | <command> |
| 55 | 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user:secret |
| 56 | </command> |
| 57 | <precheck> |
| 58 | chkhostname curlhost |
| 59 | </precheck> |
| 60 | </client> |
| 61 | |
| 62 | # |
| 63 | # Verify data after the test has been "shot" |
| 64 | <verify> |
| 65 | <protocol> |
| 66 | A001 CAPABILITY
|
| 67 | A002 AUTHENTICATE NTLM
|
| 68 | TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 69 | *
|
| 70 | A003 AUTHENTICATE PLAIN
|
| 71 | AHVzZXIAc2VjcmV0
|
| 72 | A004 SELECT %TESTNUMBER
|
| 73 | A005 FETCH 1 BODY[]
|
| 74 | A006 LOGOUT
|
| 75 | </protocol> |
| 76 | </verify> |
| 77 | </testcase> |