xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SMTP |
| 5 | SASL |
| 6 | SASL AUTH NTLM |
| 7 | SASL-IR |
| 8 | RFC4954 |
| 9 | NTLM |
| 10 | </keywords> |
| 11 | </info> |
| 12 | |
| 13 | # |
| 14 | # Server-side |
| 15 | <reply> |
| 16 | <servercmd> |
| 17 | AUTH NTLM |
| 18 | REPLY AUTH 334 TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 19 | REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 235 Authenticated |
| 20 | </servercmd> |
| 21 | </reply> |
| 22 | |
| 23 | # |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | smtp |
| 28 | </server> |
| 29 | <features> |
| 30 | NTLM |
| 31 | SSL |
| 32 | !SSPI |
| 33 | </features> |
| 34 | <name> |
| 35 | SMTP NTLM authentication with initial response |
| 36 | </name> |
| 37 | <stdin> |
| 38 | mail body
|
| 39 | </stdin> |
| 40 | <command> |
| 41 | smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass --sasl-ir -T - |
| 42 | </command> |
| 43 | </client> |
| 44 | |
| 45 | # |
| 46 | # Verify data after the test has been "shot" |
| 47 | <verify> |
| 48 | <protocol>
|
| 49 | EHLO %TESTNUMBER
|
| 50 | AUTH NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 51 | TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
|
| 52 | MAIL FROM:<sender@example.com>
|
| 53 | RCPT TO:<recipient@example.com>
|
| 54 | DATA
|
| 55 | QUIT
|
| 56 | </protocol> |
| 57 | <upload> |
| 58 | mail body
|
| 59 | .
|
| 60 | </upload> |
| 61 | </verify> |
| 62 | </testcase> |