mirror of
https://github.com/moparisthebest/curl
synced 2024-11-17 15:05:02 -05:00
c267c53017
Added support for detecting the supported SASL authentication mechanisms via the AUTH command. There are two ways of detecting them, either by using the AUTH command, that will return -ERR if not supported or by using the CAPA command which will return SASL and the list of mechanisms if supported, not include SASL if SASL authentication is not supported or -ERR if the CAPA command is not supported. As such it seems simpler to use the AUTH command and fallback to normal clear text authentication if the the command is not supported. Additionally updated the test cases to return -ERR when the AUTH command is encountered. Additional test cases will be added when support for the individual authentication mechanisms is added.
46 lines
514 B
Plaintext
46 lines
514 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
POP3
|
|
FAILURE
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
REPLY AUTH -ERR unsupported command
|
|
REPLY PASS -ERR invalid login
|
|
</servercmd>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
pop3
|
|
</server>
|
|
<name>
|
|
POP3 invalid login
|
|
</name>
|
|
<command>
|
|
pop3://%HOSTIP:%POP3PORT/813 -u user:wrong
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
67
|
|
</errorcode>
|
|
<protocol>
|
|
AUTH
|
|
USER user
|
|
PASS wrong
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|