lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SMTP |
| 5 | SASL |
| 6 | SASL AUTH NTLM |
| 7 | SASL CANCELLATION |
| 8 | RFC4954 |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <servercmd> |
| 16 | AUTH NTLM |
| 17 | REPLY AUTH 334 NTLM supported |
| 18 | REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 334 Rubbish |
| 19 | REPLY * 501 AUTH exchange cancelled by client |
| 20 | </servercmd> |
| 21 | </reply> |
| 22 | |
| 23 | # |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | smtp |
| 28 | </server> |
| 29 | <features> |
| 30 | NTLM |
| 31 | !SSPI |
| 32 | </features> |
| 33 | <name> |
| 34 | SMTP NTLM graceful cancellation |
| 35 | </name> |
| 36 | <setenv> |
| 37 | # we force our own host name, in order to make the test machine independent |
| 38 | CURL_GETHOSTNAME=curlhost |
| 39 | # we try to use the LD_PRELOAD hack, if not a debug build |
| 40 | LD_PRELOAD=%PWD/libtest/.libs/libhostname.so |
| 41 | </setenv> |
| 42 | <command> |
| 43 | smtp://%HOSTIP:%SMTPPORT/933 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T - |
| 44 | </command> |
| 45 | <precheck> |
| 46 | chkhostname curlhost |
| 47 | </precheck> |
| 48 | </client> |
| 49 | |
| 50 | # |
| 51 | # Verify data after the test has been "shot" |
| 52 | <verify> |
| 53 | # 67 - CURLE_LOGIN_DENIED |
| 54 | <errorcode> |
| 55 | 67 |
| 56 | </errorcode> |
| 57 | # |
| 58 | # The multi interface considers a broken "CONNECT" as a prematurely broken |
| 59 | # transfer and such a connection will not get a "QUIT" |
| 60 | <protocol> |
| 61 | EHLO 933
|
| 62 | AUTH NTLM
|
| 63 | TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 64 | *
|
| 65 | </protocol> |
| 66 | </verify> |
| 67 | </testcase> |