lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | POP3 |
| 5 | SASL |
| 6 | SASL AUTH NTLM |
| 7 | SASL AUTH PLAIN |
| 8 | SASL DOWNGRADE |
| 9 | RFC1734 |
| 10 | RFC5034 |
| 11 | </keywords> |
| 12 | </info> |
| 13 | |
| 14 | # |
| 15 | # Server-side |
| 16 | <reply> |
| 17 | <servercmd> |
| 18 | AUTH NTLM PLAIN |
| 19 | REPLY "AUTH NTLM" + |
| 20 | REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish |
| 21 | REPLY * -ERR AUTH exchange cancelled by client |
| 22 | REPLY "AUTH PLAIN" + |
| 23 | REPLY dXNlcgB1c2VyAHNlY3JldA== +OK Login successful |
| 24 | </servercmd> |
| 25 | <data> |
| 26 | From: me@somewhere
|
| 27 | To: fake@nowhere
|
| 28 |
|
| 29 | body
|
| 30 |
|
| 31 | --
|
| 32 | yours sincerely
|
| 33 | </data> |
| 34 | </reply> |
| 35 | |
| 36 | # |
| 37 | # Client-side |
| 38 | <client> |
| 39 | <server> |
| 40 | pop3 |
| 41 | </server> |
| 42 | <features> |
| 43 | NTLM |
| 44 | !SSPI |
| 45 | </features> |
| 46 | <name> |
| 47 | POP3 NTLM authentication with SASL downgrade |
| 48 | </name> |
| 49 | <setenv> |
| 50 | # we force our own host name, in order to make the test machine independent |
| 51 | CURL_GETHOSTNAME=curlhost |
| 52 | # we try to use the LD_PRELOAD hack, if not a debug build |
| 53 | LD_PRELOAD=%PWD/libtest/.libs/libhostname.so |
| 54 | </setenv> |
| 55 | <command> |
| 56 | pop3://%HOSTIP:%POP3PORT/880 -u user:secret |
| 57 | </command> |
| 58 | <precheck> |
| 59 | chkhostname curlhost |
| 60 | </precheck> |
| 61 | </client> |
| 62 | |
| 63 | # |
| 64 | # Verify data after the test has been "shot" |
| 65 | <verify> |
| 66 | <protocol> |
| 67 | CAPA
|
| 68 | AUTH NTLM
|
| 69 | TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 70 | *
|
| 71 | AUTH PLAIN
|
| 72 | dXNlcgB1c2VyAHNlY3JldA==
|
| 73 | RETR 880
|
| 74 | QUIT
|
| 75 | </protocol> |
| 76 | </verify> |
| 77 | </testcase> |