| <?xml version="1.0" encoding="US-ASCII"?> |
| <testcase> |
| <info> |
| <keywords> |
| SMTP |
| SASL |
| SASL AUTH PLAIN |
| RFC4616 |
| RFC4954 |
| </keywords> |
| </info> |
| |
| # Server-side |
| <reply> |
| <servercmd> |
| AUTH PLAIN |
| REPLY AUTH 334 PLAIN supported |
| REPLY %b64[ursel%00kurt%00xipj3plmq]b64% 235 Authenticated |
| </servercmd> |
| </reply> |
| |
| # Client-side |
| <client> |
| <server> |
| smtp |
| </server> |
| <name> |
| SMTP plain authentication with alternative authorization identity |
| </name> |
| <stdin crlf="yes"> |
| mail body |
| </stdin> |
| <command> |
| smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u kurt:xipj3plmq --sasl-authzid ursel -T - |
| </command> |
| </client> |
| |
| # Verify data after the test has been "shot" |
| <verify> |
| <protocol crlf="yes"> |
| EHLO %TESTNUMBER |
| AUTH PLAIN |
| %b64[ursel%00kurt%00xipj3plmq]b64% |
| MAIL FROM:%LTsender@example.com%GT |
| RCPT TO:%LTrecipient@example.com%GT |
| DATA |
| QUIT |
| </protocol> |
| <upload crlf="yes"> |
| mail body |
| . |
| </upload> |
| </verify> |
| </testcase> |